Go to the documentation of this file.
12 #include "CoinWarmStartBasis.hpp"
13 #include "CoinSearchTree.hpp"
19 class OsiSolverInterface;
20 class OsiSolverBranch;
24 class OsiRowCutDebugger;
25 class CoinWarmStartBasis;
30 class CbcGeneralBranchingObject;
86 const CoinWarmStartBasis *lastws,
87 const double * lastLower,
const double * lastUpper,
88 int numberOldActiveCuts,
int numberNewCuts);
112 int numberPassesLeft);
140 OsiSolverBranch * & branches,
141 int numberPassesLeft);
170 OsiBranchingInformation * usefulInfo,
222 return objectiveValue_;
225 objectiveValue_ = value;
230 return (branch_->numberBranches()) ;
252 return numberUnsatisfied_;
256 numberUnsatisfied_ = value;
260 return sumInfeasibilities_;
264 sumInfeasibilities_ = value;
268 return guessedObjectiveValue_;
271 guessedObjectiveValue_ = value;
294 return (state_&1) != 0;
298 if (yesNo) state_ |= 1;
303 return (state_&2) != 0;
307 if (yesNo) state_ |= 2;
321 branch_->numberBranchesLeft());
329 double objectiveValue_;
331 double guessedObjectiveValue_;
333 double sumInfeasibilities_;
335 OsiBranchingObject * branch_;
339 int numberUnsatisfied_;
CbcNode(CbcModel *model, CbcNode *lastNode)
Construct and increment parent reference count.
OsiRowCut augmented with bookkeeping.
void decrementParentCuts(CbcModel *model, int change=1)
Decrement all active cut counts in chain starting at parent.
void setObjectiveValue(double value)
int branch(OsiSolverInterface *solver)
Does next branch and updates state.
int analyze(CbcModel *model, double *results)
CbcNodeInfo * nodeInfo() const
void setState(int value)
Set state (really for debug)
double objectiveValue() const
int chooseDynamicBranch(CbcModel *model, CbcNode *lastNode, OsiSolverBranch *&branches, int numberPassesLeft)
Create a branching object for the node - when dynamic pseudo costs.
void setOnTree(bool yesNo)
Sets true if on tree.
void setSumInfeasibilities(double value)
Set sum of "infeasibilities" reported by each object.
double sumInfeasibilities() const
Get sum of "infeasibilities" reported by each object.
void decrementCuts(int change=1)
Decrement active cut counts.
int depth() const
Depth in branch-and-cut search tree.
int numberUnsatisfied() const
Get the number of objects unsatisfied at this node.
void setActive(bool yesNo)
Sets true if active.
int chooseClpBranch(CbcModel *model, CbcNode *lastNode)
Create a branching object for the node.
CbcNode(const CbcNode &)
Copy constructor.
void setGuessedObjectiveValue(double value)
OsiBranchingObject * modifiableBranchingObject() const
Modifiable branching object for this node.
Simple Branch and bound class.
int chooseOsiBranch(CbcModel *model, CbcNode *lastNode, OsiBranchingInformation *usefulInfo, int branchState)
Create a branching object for the node.
double guessedObjectiveValue() const
void setBranchingObject(OsiBranchingObject *branchingObject)
Set branching object for this node (takes ownership)
void setDepth(int value)
Set depth in branch-and-cut search tree.
void checkInfo() const
Debug.
CbcNode()
Default Constructor.
CbcNode & operator=(const CbcNode &rhs)
Assignment operator.
Information required to recreate the subproblem at this node.
int chooseBranch(CbcModel *model, CbcNode *lastNode, int numberPassesLeft)
Create a branching object for the node.
Information required while the node is live.
int getState() const
Get state (really for debug)
int nodeNumber() const
The node number.
bool onTree() const
Returns true if on tree.
void setNumberUnsatisfied(int value)
Set the number of objects unsatisfied at this node.
void setNodeNumber(int node)
double checkIsCutoff(double cutoff)
Double checks in case node can change its mind! Returns objective value Can change objective etc.
void nullNodeInfo()
Nulls out node info.
int numberBranchesLeft() const
Return number of branches left in object.
void createInfo(CbcModel *model, CbcNode *lastNode, const CoinWarmStartBasis *lastws, const double *lastLower, const double *lastUpper, int numberOldActiveCuts, int numberNewCuts)
Create a description of the subproblem at this node.
int numberBranches() const
Number of arms defined for the attached OsiBranchingObject.
const OsiBranchingObject * branchingObject() const
Branching object for this node.
bool active() const
Returns true if active.
void initializeInfo()
Initialize reference counts in attached CbcNodeInfo.