6 #ifndef CbcCutGenerator_H
7 #define CbcCutGenerator_H
81 int howOften = 1,
const char *name = NULL,
83 bool infeasible =
false,
int howOftenInsub = -100,
543 #define SCANCUTS 1000
545 #define SCANCUTS_PROBING 1000
void setSwitches(int value)
Set switches (for copying from virgin state)
void setNumberColumnCuts(int value)
int switchOffIfLessThan() const
void setWhatDepth(int value)
Set the cut generation depth.
int numberCutsAtRoot() const
Number of cuts generated at root.
bool switchedOff() const
Whether generator switched off for moment.
void setNormal(bool value)
Set whether the cut generator should be called in the normal place.
void setWhetherToUse(bool yesNo)
Set whether to use if any cuts generated.
int depthCutGenerator_
Depth at which to call the CglCutGenerator::generateCuts routine (If >0 then overrides when and is ca...
void setIneffectualCuts(bool yesNo)
Set whether last round of cuts did little.
void setNumberCutsInTotal(int value)
bool globalCutsAtRoot() const
Whether global cuts at root.
int maximumTries() const
Get maximum number of times to enter.
const char * cutGeneratorName() const
return name of generator
int depthCutGeneratorInSub_
Depth at which to call the CglCutGenerator::generateCuts routine (If >0 then overrides when and is ca...
bool needsRefresh() const
Whether needs refresh on copy.
void incrementNumberCutsInTotal(int value=1)
int inaccuracy_
Level of cut inaccuracy (0 means exact e.g. cliques)
bool whetherCallAtEnd() const
Whether to call at end.
CbcModel * model_
The client model.
int numberCuts_
Total number of cuts added.
int switches() const
Get switches.
void setWhenInfeasible(bool value)
Set whether the cut generator should be called when the subproblem is found to be infeasible...
int whatDepth() const
Get the cut generation depth criterion.
Collections of row cuts and column cuts.
CbcCutGenerator & operator=(const CbcCutGenerator &rhs)
Assignment operator.
bool atSolution() const
Get whether the cut generator should be called when a solution is found.
int numberElementsInTotal() const
Total number of elements added.
void setGlobalCuts(bool yesNo)
Set whether global cuts.
void setNumberCutsAtRoot(int value)
double timeInCutGenerator_
Time in cut generator.
int numberCutsAtRoot_
Number of cuts generated at root.
Abstract Base Class for describing an interface to a solver.
bool generateCuts(OsiCuts &cs, int fullScan, OsiSolverInterface *solver, CbcNode *node)
Generate cuts for the client model.
int numberActiveCutsAtRoot() const
Number of cuts active at root.
void setTiming(bool value)
Set whether the cut generator is being timed.
int numberColumnCuts_
Total number of column cuts added.
int numberTimes_
Number times cut generator entered.
int numberCutsActive() const
Total number of cuts active after (at end of n cut passes at each node)
void setNeedsOptimalBasis(bool yesNo)
Set if optimal basis needed.
bool globalCuts() const
Whether global cuts.
bool whenInfeasible() const
Get whether the cut generator should be called when the subproblem is found to be infeasible...
void setWhetherInMustCallAgainMode(bool yesNo)
Set whether in must call again mode (or after others)
void setNumberShortCutsAtRoot(int value)
void setAtSolution(bool value)
Set whether the cut generator should be called when a solution is found.
Cut Generator Base Class.
int switchOffIfLessThan_
If first pass at root produces fewer than this cuts then switch off.
double timeInCutGenerator() const
Return time taken in cut generator.
void setSwitchedOff(bool yesNo)
Set whether generator switched off for moment.
void incrementNumberColumnCuts(int value=1)
void refreshModel(CbcModel *model)
Set the client model.
bool whetherInMustCallAgainMode() const
Whether in must call again mode (or after others)
void setNumberTimesEntered(int value)
int numberTimesEntered() const
Number times cut generator entered.
char * generatorName_
Name of generator.
int inaccuracy() const
Get level of cut inaccuracy (0 means exact e.g. cliques)
int numberCutsActive_
Total number of cuts active after (at end of n cut passes at each node)
int whenCutGenerator_
Number of nodes between calls to the CglCutGenerator::generateCuts routine.
Information required while the node is live.
void setNumberCutsActive(int value)
int numberColumnCuts() const
Total number of column cuts.
int numberCutsInTotal() const
Total number of cuts added.
void setWhetherCallAtEnd(bool yesNo)
Set whether to call at end.
CglCutGenerator * generator_
~CbcCutGenerator()
Destructor.
bool timing() const
Get whether the cut generator is being timed.
int numberActiveCutsAtRoot_
Number of cuts active at root.
bool ineffectualCuts() const
Whether last round of cuts did little.
int whatDepthInSub() const
Get the cut generation depth criterion.in sub tree.
void generateTuning(FILE *fp)
Create C++ lines to show how to tune.
void scaleBackStatistics(int factor)
Scale back statistics by factor.
void setMaximumTries(int value)
Set maximum number of times to enter.
void setModel(CbcModel *model)
Set model.
void setGlobalCutsAtRoot(bool yesNo)
Set whether global cuts at root.
void setNeedsRefresh(bool yesNo)
Set whether needs refresh on copy.
void incrementNumberCutsActive(int value=1)
int switches_
Switches - see gets and sets.
void setInaccuracy(int level)
Set level of cut inaccuracy (0 means exact e.g. cliques)
CglCutGenerator * generator() const
Get the CglCutGenerator corresponding to this CbcCutGenerator.
void setNumberElementsInTotal(int value)
bool whetherToUse() const
Whether to use if any cuts generated.
bool normal() const
Get whether the cut generator should be called in the normal place.
void setWhatDepthInSub(int value)
Set the cut generation depth in sub tree.
CbcCutGenerator()
Default constructor.
void setNumberActiveCutsAtRoot(int value)
bool mustCallAgain() const
Whether generator MUST be called again if any cuts (i.e. ignore break from loop)
int numberShortCutsAtRoot() const
Number of short cuts at root.
Validate cuts against a known solution.
void setMustCallAgain(bool yesNo)
Set whether generator MUST be called again if any cuts (i.e. ignore break from loop) ...
bool needsOptimalBasis() const
Say if optimal basis needed.
OsiCuts savedCuts_
Saved cuts.
int numberShortCutsAtRoot_
Number of short cuts at root.
int howOftenInSub() const
Get the cut generation interval.in sub tree.
Interface between Cbc and Cut Generation Library.
void addStatistics(const CbcCutGenerator *other)
Add in statistics from other.
void setSwitchOffIfLessThan(int value)
int whenCutGeneratorInSub_
Number of nodes between calls to the CglCutGenerator::generateCuts routine in sub tree...
Simple Branch and bound class.
void setHowOften(int value)
Set the cut generation interval.
int howOften() const
Get the cut generation interval.
void incrementTimeInCutGenerator(double value)
void incrementNumberElementsInTotal(int value=1)
int maximumTries_
Maximum number of times to enter.
void incrementNumberTimesEntered(int value=1)
int numberElements_
Total number of elements added.