#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... | |
| BlisPseudocost () | |
| Default constructor. More... | |
| BlisPseudocost (double uc, int un, double dc, int dn, double s) | |
| Useful constructor. More... | |
| BlisPseudocost (const BlisPseudocost &cost) | |
| Copy constructor. More... | |
| BlisPseudocost & | operator= (const BlisPseudocost &cost) |
| Overload operator =. 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... | |
| void | update (double upCost, int upCount, double downCost, int downCount) |
| 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... | |
| void | setScore (double s) |
| Set importance. More... | |
| AlpsReturnStatus | encodeTo (AlpsEncoded *encoded) const |
| Pack pseudocost to the given object. More... | |
| AlpsReturnStatus | decodeFrom (AlpsEncoded &encoded) |
| Unpack pseudocost from the given encode object. More... | |
| virtual AlpsEncoded * | encode () const |
| Encode this node for message passing. More... | |
| virtual AlpsKnowledge * | decode (AlpsEncoded &) const |
| Decode a node from an encoded object. More... | |
Public Member Functions inherited from AlpsKnowledge | |
| AlpsKnowledge () | |
| virtual | ~AlpsKnowledge () |
| KnowledgeType | getType () |
| void | setType (KnowledgeType t) |
| virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) |
| Pack into a encode object. More... | |
| AlpsEncoded * | getEncoded () const |
| Get/set encoded. More... | |
| void | setEncoded (AlpsEncoded *e) |
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... | |
Additional Inherited Members | |
Protected Attributes inherited from AlpsKnowledge | |
| KnowledgeType | type_ |
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 |
Default constructor.
Definition at line 58 of file BlisPseudo.h.
|
inline |
Useful constructor.
Definition at line 68 of file BlisPseudo.h.
|
inline |
Copy constructor.
Definition at line 83 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.
|
inline |
Overload operator =.
Definition at line 93 of file BlisPseudo.h.
|
inline |
Set weigth.
Definition at line 104 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.
| void BlisPseudocost::update | ( | double | upCost, |
| int | upCount, | ||
| double | downCost, | ||
| int | downCount | ||
| ) |
Update pseudocost.
|
inline |
Get up branching count.
Definition at line 130 of file BlisPseudo.h.
|
inline |
Get up branching cost.
Definition at line 133 of file BlisPseudo.h.
|
inline |
Get down branching count.
Definition at line 136 of file BlisPseudo.h.
|
inline |
Get down branching cost.
Definition at line 139 of file BlisPseudo.h.
|
inline |
Get importance.
Definition at line 142 of file BlisPseudo.h.
|
inline |
Set importance.
Definition at line 145 of file BlisPseudo.h.
| AlpsReturnStatus BlisPseudocost::encodeTo | ( | AlpsEncoded * | encoded | ) | const |
Pack pseudocost to the given object.
| AlpsReturnStatus BlisPseudocost::decodeFrom | ( | AlpsEncoded & | encoded | ) |
Unpack pseudocost from the given encode object.
|
virtual |
Encode this node for message passing.
Reimplemented from AlpsKnowledge.
|
virtual |
Decode a node from an encoded object.
Reimplemented from AlpsKnowledge.
|
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.
1.8.5