6 #ifndef CbcCountRowCut_H
7 #define CbcCountRowCut_H
87 bool canDropCut(
const OsiSolverInterface *solver,
int row)
const;
89 #ifdef CHECK_CUT_COUNTS
138 inline OsiRowCut2 *
cut(
int sequence)
const
OsiRowCut augmented with bookkeeping.
int decrement(int change=1)
Decrement the number of references and return the number left.
virtual ~CbcCountRowCut()
Destructor.
CbcCountRowCut & operator=(const CbcCountRowCut &rhs)
Standard assignment is illegal (reference counts would be incorrect)
int whichCutGenerator_
Which generator created this cut (add 10000 if globally valid) if -1 then from global cut pool -2 cut...
int whichCutGenerator() const
Which generator for cuts - as user order.
CbcCountRowCut()
Default Constructor.
int numberPointingToThis()
Number of other CbcNodeInfo objects pointing to this row cut.
void increment(int change=1)
Increment the number of references.
int ownerCut_
Index of cut in owner's cut set (cuts_ ).
bool canDropCut(const OsiSolverInterface *solver, int row) const
Returns true if can drop cut if slack basic.
CbcNodeInfo * owner_
Backward pointer to owning CbcNodeInfo.
void setInfo(CbcNodeInfo *, int whichOne)
Set the information associating this cut with a node.
int numberPointingToThis_
Number of other CbcNodeInfo objects pointing to this cut.
CbcCountRowCut(const OsiRowCut &, CbcNodeInfo *, int whichOne, int whichGenerator=-1, int numberPointingToThis=0)
‘Copy’ constructor using an OsiRowCut and an CbcNodeInfo
CbcCountRowCut(const CbcCountRowCut &)
Standard copy is illegal (reference counts would be incorrect)
CbcCountRowCut(const OsiRowCut &)
‘Copy’ constructor using an OsiRowCut
Information required to recreate the subproblem at this node.
CbcRowCuts(const CbcRowCuts &rhs)
void truncate(int numberAfter)
int addCutIfNotDuplicateWhenGreedy(const OsiRowCut &cut, int whichType=0)
OsiRowCut2 * cut(int sequence) const
int addCutIfNotDuplicate(const OsiRowCut &cut, int whichType=0)
void addCuts(OsiCuts &cs)
OsiRowCut * rowCutPtr(int sequence)
CbcRowCuts & operator=(const CbcRowCuts &rhs)
void eraseRowCut(int sequence)
CbcRowCuts(int initialMaxSize=0, int hashMultiplier=4)
CoinHashLink * hash_
Hash table.
Really for Conflict cuts to - a) stop duplicates b) allow half baked cuts The whichRow_ field in OsiR...