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