Define a catch all class. More...
#include <CbcGeneralDepth.hpp>


Public Member Functions | |
| CbcGeneralDepth () | |
| CbcGeneralDepth (CbcModel *model, int maximumDepth) | |
| Useful constructor Just needs to point to model. | |
| CbcGeneralDepth (const CbcGeneralDepth &) | |
| virtual CbcObject * | clone () const |
| Clone. | |
| CbcGeneralDepth & | operator= (const CbcGeneralDepth &rhs) |
| Assignment operator. | |
| ~CbcGeneralDepth () | |
| virtual double | infeasibility (const OsiBranchingInformation *info, int &preferredWay) const |
| Infeasibility - large is 0.5. | |
| virtual void | feasibleRegion () |
| This looks at solution and sets bounds to contain solution. | |
| virtual CbcBranchingObject * | createCbcBranch (OsiSolverInterface *solver, const OsiBranchingInformation *info, int way) |
| Creates a branching object. | |
| int | maximumNodes () const |
| Return maximum number of nodes. | |
| int | maximumDepth () const |
| Get maximum depth. | |
| void | setMaximumDepth (int value) |
| Set maximum depth. | |
| int | numberNodes () const |
| Return number of nodes. | |
| int | whichSolution () const |
| Get which solution. | |
| ClpNode * | nodeInfo (int which) |
| Get ClpNode info. | |
| virtual void | redoSequenceEtc (CbcModel *model, int numberColumns, const int *originalColumns) |
| Redoes data when sequence numbers change. | |
Protected Attributes | |
| int | maximumDepth_ |
| data Maximum depth | |
| int | maximumNodes_ |
| Maximum nodes. | |
| int | whichSolution_ |
| Which node has solution (or -1). | |
| int | numberNodes_ |
| Number of valid nodes (including whichSolution_). | |
| ClpNodeStuff * | nodeInfo_ |
| For solving nodes. | |
Define a catch all class.
This will create a list of subproblems using partial evaluation
Definition at line 24 of file CbcGeneralDepth.hpp.
| CbcGeneralDepth::CbcGeneralDepth | ( | ) |
| CbcGeneralDepth::CbcGeneralDepth | ( | CbcModel * | model, | |
| int | maximumDepth | |||
| ) |
Useful constructor Just needs to point to model.
Initial version does evaluation to depth N This is stored in CbcModel but may be better here
| CbcGeneralDepth::CbcGeneralDepth | ( | const CbcGeneralDepth & | ) |
| CbcGeneralDepth::~CbcGeneralDepth | ( | ) |
| virtual CbcObject* CbcGeneralDepth::clone | ( | ) | const [virtual] |
Clone.
Implements CbcGeneral.
| CbcGeneralDepth& CbcGeneralDepth::operator= | ( | const CbcGeneralDepth & | rhs | ) |
Assignment operator.
Reimplemented from CbcGeneral.
| virtual double CbcGeneralDepth::infeasibility | ( | const OsiBranchingInformation * | info, | |
| int & | preferredWay | |||
| ) | const [virtual] |
Infeasibility - large is 0.5.
Reimplemented from CbcGeneral.
| virtual void CbcGeneralDepth::feasibleRegion | ( | ) | [virtual] |
This looks at solution and sets bounds to contain solution.
Implements CbcGeneral.
| virtual CbcBranchingObject* CbcGeneralDepth::createCbcBranch | ( | OsiSolverInterface * | solver, | |
| const OsiBranchingInformation * | info, | |||
| int | way | |||
| ) | [virtual] |
Creates a branching object.
Reimplemented from CbcGeneral.
| int CbcGeneralDepth::maximumNodes | ( | ) | const [inline] |
Return maximum number of nodes.
Definition at line 62 of file CbcGeneralDepth.hpp.
References maximumNodes_.
| int CbcGeneralDepth::maximumDepth | ( | ) | const [inline] |
| void CbcGeneralDepth::setMaximumDepth | ( | int | value | ) | [inline] |
| int CbcGeneralDepth::numberNodes | ( | ) | const [inline] |
| int CbcGeneralDepth::whichSolution | ( | ) | const [inline] |
| ClpNode* CbcGeneralDepth::nodeInfo | ( | int | which | ) | [inline] |
Get ClpNode info.
Definition at line 82 of file CbcGeneralDepth.hpp.
References ClpNodeStuff::nodeInfo_, and nodeInfo_.
| virtual void CbcGeneralDepth::redoSequenceEtc | ( | CbcModel * | model, | |
| int | numberColumns, | |||
| const int * | originalColumns | |||
| ) | [virtual] |
Redoes data when sequence numbers change.
Implements CbcGeneral.
int CbcGeneralDepth::maximumDepth_ [protected] |
data Maximum depth
Definition at line 92 of file CbcGeneralDepth.hpp.
Referenced by maximumDepth(), and setMaximumDepth().
int CbcGeneralDepth::maximumNodes_ [protected] |
int CbcGeneralDepth::whichSolution_ [mutable, protected] |
Which node has solution (or -1).
Definition at line 96 of file CbcGeneralDepth.hpp.
Referenced by whichSolution().
int CbcGeneralDepth::numberNodes_ [mutable, protected] |
Number of valid nodes (including whichSolution_).
Definition at line 98 of file CbcGeneralDepth.hpp.
Referenced by numberNodes().
ClpNodeStuff* CbcGeneralDepth::nodeInfo_ [mutable, protected] |
1.6.1