105 if (w < 0.0 || w > 1.0) {
106 throw CoinError(
"weight is not in range [0,1]",
"setWeight",
113 void update(
const int dir,
114 const double parentObjValue,
115 const double objValue,
116 const double solValue);
119 void update(
const int dir,
120 const double objDiff,
121 const double solValue);
124 void update(
double upCost,
BlisPseudocost()
Default constructor.
int getDownCount()
Get down branching count.
void setWeight(double w)
Set weigth.
double getUpCost()
Get up branching cost.
BlisPseudocost(double uc, int un, double dc, int dn, double s)
Useful constructor.
This data structure is to contain the packed form of an encodable knowledge.
double getDownCost()
Get down branching cost.
double upCost_
Average object change when branching up.
int getUpCount()
Get up branching count.
AlpsReturnStatus decodeFrom(AlpsEncoded &encoded)
Unpack pseudocost from the given encode object.
double score_
The estimated importance.
virtual AlpsKnowledge * decode(AlpsEncoded &) const
Decode a node from an encoded object.
AlpsReturnStatus encodeTo(AlpsEncoded *encoded) const
Pack pseudocost to the given object.
int downCount_
How many times being branched down.
double downCost_
Average object change when branching down.
The abstract base class of any user-defined class that Alps has to know about in order to encode/deco...
int upCount_
How many times being branched up.
void update(const int dir, const double parentObjValue, const double objValue, const double solValue)
Update pseudocost.
Error Class thrown by an exception.
double weight_
Use to calculate score.
BlisPseudocost & operator=(const BlisPseudocost &cost)
Overload operator =.
void setScore(double s)
Set importance.
virtual AlpsEncoded * encode() const
This method should encode the content of the object and return a pointer to the encoded form...
double getScore()
Get importance.
BlisPseudocost(const BlisPseudocost &cost)
Copy constructor.
virtual AlpsEncoded * encode() const
Encode this node for message passing.