Go to the documentation of this file.
84 weight_ = cost.weight_;
85 upCost_ = cost.upCost_;
86 upCount_ = cost.upCount_;
87 downCost_ = cost.downCost_;
88 downCount_ = cost.downCount_;
94 weight_ = cost.weight_;
95 upCost_ = cost.upCost_;
96 upCount_ = cost.upCount_;
97 downCost_ = cost.downCost_;
98 downCount_ = cost.downCount_;
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,
void setScore(double s)
Set importance.
virtual AlpsEncoded * encode() const
Encode this node for message passing.
double getDownCost()
Get down branching cost.
AlpsReturnStatus encodeTo(AlpsEncoded *encoded) const
Pack pseudocost to the given object.
AlpsReturnStatus decodeFrom(AlpsEncoded &encoded)
Unpack pseudocost from the given encode object.
BlisPseudocost(const BlisPseudocost &cost)
Copy constructor.
virtual AlpsKnowledge * decode(AlpsEncoded &) const
Decode a node from an encoded object.
virtual AlpsEncoded * encode() const
void update(const int dir, const double parentObjValue, const double objValue, const double solValue)
Update pseudocost.
void setWeight(double w)
Set weigth.
BlisPseudocost(double uc, int un, double dc, int dn, double s)
Useful constructor.
BlisPseudocost()
Default constructor.
double getUpCost()
Get up branching cost.
BlisPseudocost & operator=(const BlisPseudocost &cost)
Overload operator =.
int getDownCount()
Get down branching count.
int getUpCount()
Get up branching count.
double getScore()
Get importance.