Define a catch all class. More...
#include <CbcBranchActual.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) |
~CbcGeneralDepth () | |
virtual double | infeasibility (int &preferredWay) const |
Infeasibility - large is 0.5. | |
virtual void | feasibleRegion () |
This looks at solution and sets bounds to contain solution. | |
virtual CbcBranchingObject * | createBranch (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 | 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 1477 of file CbcBranchActual.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 | ) |
Reimplemented from CbcGeneral.
virtual double CbcGeneralDepth::infeasibility | ( | int & | preferredWay | ) | const [virtual] |
Infeasibility - large is 0.5.
Implements CbcGeneral.
virtual void CbcGeneralDepth::feasibleRegion | ( | ) | [virtual] |
This looks at solution and sets bounds to contain solution.
Implements CbcGeneral.
virtual CbcBranchingObject* CbcGeneralDepth::createBranch | ( | int | way | ) | [virtual] |
Creates a branching object.
Implements CbcGeneral.
int CbcGeneralDepth::maximumNodes | ( | ) | const [inline] |
Return maximum number of nodes.
Definition at line 1516 of file CbcBranchActual.hpp.
int CbcGeneralDepth::maximumDepth | ( | ) | const [inline] |
Get maximum depth.
Definition at line 1519 of file CbcBranchActual.hpp.
void CbcGeneralDepth::setMaximumDepth | ( | int | value | ) | [inline] |
Set maximum depth.
Definition at line 1522 of file CbcBranchActual.hpp.
int CbcGeneralDepth::whichSolution | ( | ) | const [inline] |
Get which solution.
Definition at line 1525 of file CbcBranchActual.hpp.
ClpNode* CbcGeneralDepth::nodeInfo | ( | int | which | ) | [inline] |
Get ClpNode info.
Definition at line 1528 of file CbcBranchActual.hpp.
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 1537 of file CbcBranchActual.hpp.
int CbcGeneralDepth::maximumNodes_ [protected] |
Maximum nodes.
Definition at line 1539 of file CbcBranchActual.hpp.
int CbcGeneralDepth::whichSolution_ [mutable, protected] |
Which node has solution (or -1).
Definition at line 1541 of file CbcBranchActual.hpp.
int CbcGeneralDepth::numberNodes_ [mutable, protected] |
Number of valid nodes (including whichSolution_).
Definition at line 1543 of file CbcBranchActual.hpp.
ClpNodeStuff* CbcGeneralDepth::nodeInfo_ [mutable, protected] |
For solving nodes.
Definition at line 1545 of file CbcBranchActual.hpp.