23 #ifndef BcpsTreeNode_h_
24 #define BcpsTreeNode_h_
110 virtual int process(
bool isRoot =
false,
bool rampUp =
false);
119 virtual std::vector< CoinTriple<AlpsNodeDesc*, AlpsNodeStatus, double> >
145 #if 0 // Can't docode a down(blis) branching object here.
AlpsReturnStatus encodeBcps(AlpsEncoded *encoded) const
Pack Bcps portion of node into an encoded object.
AlpsEncoded & readRep(T &value)
Read a single object of type T from repsentation_ .
BcpsTreeNode()
Default constructor.
AlpsEncoded & writeRep(const T &value)
Write a single object of type T in repsentation_ .
virtual int chooseBranchingObject(BcpsModel *model)=0
Choose a branching object.
virtual int installSubProblem(BcpsModel *model)=0
Extract node information (bounds, constraints, variables) from this node and load the information int...
virtual int generateConstraints(BcpsModel *model, BcpsConstraintPool *conPool)
Generate constraints.
virtual ~BcpsTreeNode()
Destructor.
virtual int generateVariables(BcpsModel *model, BcpsVariablePool *varPool)
Generate variables.
void setBranchObject(BcpsBranchObject *b)
Set the branching object.
BcpsBranchObject contains the member data required when choosing branching entities and excuting actu...
This data structure is to contain the packed form of an encodable knowledge.
virtual int process(bool isRoot=false, bool rampUp=false)
This methods performs the processing of the node.
virtual int handleBoundingStatus(int status, bool &keepOn, bool &fathomed)
Handle bounding status:
This class holds one node of the search tree.
const BcpsBranchObject * branchObject() const
Return the branching object.
virtual AlpsReturnStatus encode(AlpsEncoded *encoded) const
Pack to an encoded object.
virtual int bound(BcpsModel *model)=0
Bounding procedure to estimate quality of this node.
BcpsBranchObject * branchObject_
Branching object for this node, which has information of how to execute branching.
virtual std::vector< CoinTriple< AlpsNodeDesc *, AlpsNodeStatus, double > > branch()=0
This method must be invoked on a pregnant node (which has all the information needed to create the ch...
This class contain the data for a BCPS search tree node.