12#include "CoinWarmStartBasis.hpp"
13#include "CoinSearchTree.hpp"
19class OsiSolverInterface;
24class OsiRowCutDebugger;
25class CoinWarmStartBasis;
30class CbcGeneralBranchingObject;
49class CbcNode :
public CoinTreeNode {
56 CbcNode(CbcModel *
model, CbcNode *lastNode);
59 CbcNode(
const CbcNode &);
62 CbcNode &operator=(
const CbcNode &rhs);
85 const CoinWarmStartBasis *lastws,
86 const double *lastLower,
const double *lastUpper,
87 int numberOldActiveCuts,
int numberNewCuts);
111 int numberPassesLeft);
139 OsiSolverBranch *&branches,
140 int numberPassesLeft);
169 OsiBranchingInformation *usefulInfo,
233 return (
branch_->numberBranches());
void setObjectiveValue(double value)
int depth_
Depth of the node in the search tree.
void setGuessedObjectiveValue(double value)
double guessedObjectiveValue() const
double sumInfeasibilities() const
Get sum of "infeasibilities" reported by each object.
void decrementParentCuts(CbcModel *model, int change=1)
Decrement all active cut counts in chain starting at parent.
void setBranchingObject(OsiBranchingObject *branchingObject)
Set branching object for this node (takes ownership).
void setNodeNumber(int node)
void decrementCuts(int change=1)
Decrement active cut counts.
int analyze(CbcModel *model, double *results)
double objectiveValue() const
int chooseOsiBranch(CbcModel *model, CbcNode *lastNode, OsiBranchingInformation *usefulInfo, int branchState)
Create a branching object for the node.
OsiBranchingObject * branch_
Branching object for this node.
void initializeInfo()
Initialize reference counts in attached CbcNodeInfo.
int chooseDynamicBranch(CbcModel *model, CbcNode *lastNode, OsiSolverBranch *&branches, int numberPassesLeft)
Create a branching object for the node - when dynamic pseudo costs.
OsiBranchingObject * modifiableBranchingObject() const
Modifiable branching object for this node.
int chooseBranch(CbcModel *model, CbcNode *lastNode, int numberPassesLeft)
Create a branching object for the node.
int numberBranches() const
Number of arms defined for the attached OsiBranchingObject.
CbcNodeInfo * nodeInfo_
Information to make basis and bounds.
CbcNodeInfo * nodeInfo() const
int nodeNumber() const
The node number.
bool onTree() const
Returns true if on tree.
int depth() const
Depth in branch-and-cut search tree.
int chooseClpBranch(CbcModel *model, CbcNode *lastNode)
Create a branching object for the node.
int state_
State 1 - on tree 2 - active.
void createInfo(CbcModel *model, CbcNode *lastNode, const CoinWarmStartBasis *lastws, const double *lastLower, const double *lastUpper, int numberOldActiveCuts, int numberNewCuts)
Information required while the node is live.
void nullNodeInfo()
Nulls out node info.
void checkInfo() const
Debug.
int nodeNumber_
The node number.
double guessedObjectiveValue_
Guessed satisfied Objective value.
void setNumberUnsatisfied(int value)
Set the number of objects unsatisfied at this node.
double sumInfeasibilities_
Sum of "infeasibilities" reported by each object.
void setSumInfeasibilities(double value)
Set sum of "infeasibilities" reported by each object.
int numberUnsatisfied_
The number of objects unsatisfied at this node.
int branch(OsiSolverInterface *solver)
Does next branch and updates state.
void setActive(bool yesNo)
Sets true if active.
const OsiBranchingObject * branchingObject() const
Branching object for this node.
int getState() const
Get state (really for debug).
double objectiveValue_
Objective value.
double checkIsCutoff(double cutoff)
Double checks in case node can change its mind!
void setState(int value)
Set state (really for debug).
bool active() const
Returns true if active.
void setDepth(int value)
Set depth in branch-and-cut search tree.
int numberUnsatisfied() const
Get the number of objects unsatisfied at this node.
void setOnTree(bool yesNo)
Sets true if on tree.
CbcModel * model() const
Return model.
OsiRowCut augmented with bookkeeping.
Simple Branch and bound class.
Information required to recreate the subproblem at this node.