#include <BlisPseudo.h>
Public Member Functions | |
BlisPseudocost () | |
Default constructor. More... | |
BlisPseudocost (double uc, int un, double dc, int dn, double s) | |
Useful constructor. More... | |
void | setWeight (double w) |
Set weigth. More... | |
void | update (const int dir, const double parentObjValue, const double objValue, const double solValue) |
Update pseudocost. More... | |
void | update (const int dir, const double objDiff, const double solValue) |
Update pseudocost. More... | |
int | getUpCount () |
Get up branching count. More... | |
double | getUpCost () |
Get up branching cost. More... | |
int | getDownCount () |
Get down branching count. More... | |
double | getDownCost () |
Get down branching cost. More... | |
double | getScore () |
Get importance. More... | |
Private Attributes | |
double | weight_ |
Use to calculate score. More... | |
int | upCount_ |
How many times being branched up. More... | |
double | upCost_ |
Average object change when branching up. More... | |
int | downCount_ |
How many times being branched down. More... | |
double | downCost_ |
Average object change when branching down. More... | |
double | score_ |
The estimated importance. More... | |
Definition at line 31 of file BlisPseudo.h.
|
inline |
Default constructor.
Definition at line 57 of file BlisPseudo.h.
|
inline |
Useful constructor.
Definition at line 67 of file BlisPseudo.h.
|
inline |
Set weigth.
Definition at line 82 of file BlisPseudo.h.
void BlisPseudocost::update | ( | const int | dir, |
const double | parentObjValue, | ||
const double | objValue, | ||
const double | solValue | ||
) |
Update pseudocost.
void BlisPseudocost::update | ( | const int | dir, |
const double | objDiff, | ||
const double | solValue | ||
) |
Update pseudocost.
|
inline |
Get up branching count.
Definition at line 102 of file BlisPseudo.h.
|
inline |
Get up branching cost.
Definition at line 105 of file BlisPseudo.h.
|
inline |
Get down branching count.
Definition at line 108 of file BlisPseudo.h.
|
inline |
Get down branching cost.
Definition at line 111 of file BlisPseudo.h.
|
inline |
Get importance.
Definition at line 114 of file BlisPseudo.h.
|
private |
Use to calculate score.
Definition at line 35 of file BlisPseudo.h.
|
private |
How many times being branched up.
Definition at line 38 of file BlisPseudo.h.
|
private |
Average object change when branching up.
Definition at line 41 of file BlisPseudo.h.
|
private |
How many times being branched down.
Definition at line 44 of file BlisPseudo.h.
|
private |
Average object change when branching down.
Definition at line 47 of file BlisPseudo.h.
|
private |
The estimated importance.
Score = weight * MIN(downCost_, upCost_) + (1.0 - weight) * MAX(downCost_, upCost_)
Definition at line 53 of file BlisPseudo.h.