Strategy base class. More...
#include <CbcStrategy.hpp>
Public Member Functions | |
| CbcStrategy () | |
| virtual | ~CbcStrategy () |
| virtual CbcStrategy * | clone () const =0 |
| Clone. | |
| virtual void | setupCutGenerators (CbcModel &model)=0 |
| Setup cut generators. | |
| virtual void | setupHeuristics (CbcModel &model)=0 |
| Setup heuristics. | |
| virtual void | setupPrinting (CbcModel &model, int modelLogLevel)=0 |
| Do printing stuff. | |
| virtual void | setupOther (CbcModel &model)=0 |
| Other stuff e.g. strong branching and preprocessing. | |
| void | setNested (int depth) |
| Set model depth (i.e. how nested) | |
| int | getNested () const |
| Get model depth (i.e. how nested) | |
| void | setPreProcessState (int state) |
| Say preProcessing done. | |
| int | preProcessState () const |
| See what sort of preprocessing was done. | |
| CglPreProcess * | process () const |
| Pre-processing object. | |
| void | deletePreProcess () |
| Delete pre-processing object to save memory. | |
| virtual CbcNodeInfo * | fullNodeInfo (CbcModel *model, int numberRowsAtContinuous) const |
| Return a new Full node information pointer (descendant of CbcFullNodeInfo) | |
| virtual CbcNodeInfo * | partialNodeInfo (CbcModel *model, CbcNodeInfo *parent, CbcNode *owner, int numberChangedBounds, const int *variables, const double *boundChanges, const CoinWarmStartDiff *basisDiff) const |
| Return a new Partial node information pointer (descendant of CbcPartialNodeInfo) | |
| virtual void | generateCpp (FILE *) |
| Create C++ lines to get to current state. | |
| virtual int | status (CbcModel *model, CbcNodeInfo *parent, int whereFrom) |
| After a CbcModel::resolve this can return a status -1 no effect 0 treat as optimal 1 as 0 but do not do any more resolves (i.e. | |
| CbcStrategy () | |
| virtual | ~CbcStrategy () |
| virtual CbcStrategy * | clone () const =0 |
| Clone. | |
| virtual void | setupCutGenerators (CbcModel &model)=0 |
| Setup cut generators. | |
| virtual void | setupHeuristics (CbcModel &model)=0 |
| Setup heuristics. | |
| virtual void | setupPrinting (CbcModel &model, int modelLogLevel)=0 |
| Do printing stuff. | |
| virtual void | setupOther (CbcModel &model)=0 |
| Other stuff e.g. strong branching and preprocessing. | |
| void | setNested (int depth) |
| Set model depth (i.e. how nested) | |
| int | getNested () const |
| Get model depth (i.e. how nested) | |
| void | setPreProcessState (int state) |
| Say preProcessing done. | |
| int | preProcessState () const |
| See what sort of preprocessing was done. | |
| CglPreProcess * | process () const |
| Pre-processing object. | |
| void | deletePreProcess () |
| Delete pre-processing object to save memory. | |
| virtual CbcNodeInfo * | fullNodeInfo (CbcModel *model, int numberRowsAtContinuous) const |
| Return a new Full node information pointer (descendant of CbcFullNodeInfo) | |
| virtual CbcNodeInfo * | partialNodeInfo (CbcModel *model, CbcNodeInfo *parent, CbcNode *owner, int numberChangedBounds, const int *variables, const double *boundChanges, const CoinWarmStartDiff *basisDiff) const |
| Return a new Partial node information pointer (descendant of CbcPartialNodeInfo) | |
| virtual void | generateCpp (FILE *) |
| Create C++ lines to get to current state. | |
| virtual int | status (CbcModel *model, CbcNodeInfo *parent, int whereFrom) |
| After a CbcModel::resolve this can return a status -1 no effect 0 treat as optimal 1 as 0 but do not do any more resolves (i.e. | |
Protected Attributes | |
| int | depth_ |
| Model depth. | |
| int | preProcessState_ |
| PreProcessing state - -1 infeasible 0 off 1 was done (so need post-processing) | |
| CglPreProcess * | process_ |
| If preprocessing then this is object. | |
Private Member Functions | |
| CbcStrategy & | operator= (const CbcStrategy &rhs) |
| Illegal Assignment operator. | |
| CbcStrategy & | operator= (const CbcStrategy &rhs) |
| Illegal Assignment operator. | |
Strategy base class.
Definition at line 16 of file CbcStrategy.hpp.
| CbcStrategy::CbcStrategy | ( | ) |
|
virtual |
| CbcStrategy::CbcStrategy | ( | ) |
|
virtual |
|
pure virtual |
Clone.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
pure virtual |
Setup cut generators.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
pure virtual |
Setup heuristics.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
pure virtual |
Do printing stuff.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
pure virtual |
Other stuff e.g. strong branching and preprocessing.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
inline |
Set model depth (i.e. how nested)
Definition at line 35 of file CbcStrategy.hpp.
|
inline |
Get model depth (i.e. how nested)
Definition at line 39 of file CbcStrategy.hpp.
|
inline |
Say preProcessing done.
Definition at line 43 of file CbcStrategy.hpp.
|
inline |
See what sort of preprocessing was done.
Definition at line 47 of file CbcStrategy.hpp.
|
inline |
Pre-processing object.
Definition at line 51 of file CbcStrategy.hpp.
| void CbcStrategy::deletePreProcess | ( | ) |
Delete pre-processing object to save memory.
|
virtual |
Return a new Full node information pointer (descendant of CbcFullNodeInfo)
|
virtual |
Return a new Partial node information pointer (descendant of CbcPartialNodeInfo)
|
inlinevirtual |
Create C++ lines to get to current state.
Reimplemented in CbcStrategyDefault, and CbcStrategyDefault.
Definition at line 64 of file CbcStrategy.hpp.
|
virtual |
After a CbcModel::resolve this can return a status -1 no effect 0 treat as optimal 1 as 0 but do not do any more resolves (i.e.
no more cuts) 2 treat as infeasible
|
private |
Illegal Assignment operator.
|
pure virtual |
Clone.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
pure virtual |
Setup cut generators.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
pure virtual |
Setup heuristics.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
pure virtual |
Do printing stuff.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
pure virtual |
Other stuff e.g. strong branching and preprocessing.
Implemented in CbcStrategyDefaultSubTree, CbcStrategyDefaultSubTree, CbcStrategyDefault, CbcStrategyDefault, CbcStrategyNull, and CbcStrategyNull.
|
inline |
Set model depth (i.e. how nested)
Definition at line 35 of file CbcStrategy.hpp.
|
inline |
Get model depth (i.e. how nested)
Definition at line 39 of file CbcStrategy.hpp.
|
inline |
Say preProcessing done.
Definition at line 43 of file CbcStrategy.hpp.
|
inline |
See what sort of preprocessing was done.
Definition at line 47 of file CbcStrategy.hpp.
|
inline |
Pre-processing object.
Definition at line 51 of file CbcStrategy.hpp.
| void CbcStrategy::deletePreProcess | ( | ) |
Delete pre-processing object to save memory.
|
virtual |
Return a new Full node information pointer (descendant of CbcFullNodeInfo)
|
virtual |
Return a new Partial node information pointer (descendant of CbcPartialNodeInfo)
|
inlinevirtual |
Create C++ lines to get to current state.
Reimplemented in CbcStrategyDefault, and CbcStrategyDefault.
Definition at line 64 of file CbcStrategy.hpp.
|
virtual |
After a CbcModel::resolve this can return a status -1 no effect 0 treat as optimal 1 as 0 but do not do any more resolves (i.e.
no more cuts) 2 treat as infeasible
|
private |
Illegal Assignment operator.
|
protected |
Model depth.
Definition at line 79 of file CbcStrategy.hpp.
|
protected |
PreProcessing state - -1 infeasible 0 off 1 was done (so need post-processing)
Definition at line 85 of file CbcStrategy.hpp.
|
protected |
If preprocessing then this is object.
Definition at line 87 of file CbcStrategy.hpp.
1.8.1.1