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