23 #ifndef AbcTreeNode_h_
24 #define AbcTreeNode_h_
110 virtual int process(
bool isRoot =
false,
bool rampUp =
false);
129 virtual std::vector< CoinTriple<AlpsNodeDesc*, AlpsNodeStatus, double> >
AbcTreeNode & operator=(const AbcTreeNode &)
virtual std::vector< CoinTriple< AlpsNodeDesc *, AlpsNodeStatus, double > > branch()
AbcTreeNode(AbcNodeDesc *&desc)
int numberUnsatisfied() const
Get the number of objects unsatisfied at this node.
double getObjValue() const
Query/set the objective value (could be approximately or not exit) of the node.
virtual int process(bool isRoot=false, bool rampUp=false)
Performing the bounding operation.
int numberUnsatisfied_
The number of objects unsatisfied at this node.
int branchedDir_
Branching direction.
void setBranchedDir(int d)
AlpsKnowledgeBroker * getKnowledgeBroker() const
Functions to access/set the knwoledge broker.
This data structure is to contain the packed form of an encodable knowledge.
double guessedObjectiveValue_
Guessed satisfied Objective value.
double getBranchedOnValue() const
This class holds one node of the search tree.
int getBranchedOn() const
void setBranchedOn(int b)
void setGuessedObjectiveValue(double value)
The abstract base class of any user-defined class that Alps has to know about in order to encode/deco...
double quality_
The quality of this node.
double guessedObjectiveValue() const
Guessed objective value (for solution)
virtual AlpsEncoded * encode() const
This method should encode the content of the object and return a pointer to the encoded form...
void setObjValue(const double objValue)
Query/set the objective value (could be approximately or not exit) of the node.
virtual AlpsKnowledge * decode(AlpsEncoded &) const
This method should decode and return a pointer to a brand new object, i.e., the method must create a ...
void setBranchedOnValue(double b)
virtual AlpsTreeNode * createNewTreeNode(AlpsNodeDesc *&desc) const
The purpose of this function is be able to create the children of a node after branching.
int getBranchedDir() const
int chooseBranch(AbcModel *model, bool &strongFound)
Select the branch variable.
int branchedOn_
The index of the branching variable.
double branchedOnVal_
The solution value (non-integral) of the branching variable.
A class to refer to the description of a search tree node.
Model class for ALPS Branch and Cut.
AlpsNodeDesc * desc_
The actual description of the tree node.