#include <CbcGeneralDepth.hpp>
Public Member Functions | |
CbcGeneralBranchingObject () | |
CbcGeneralBranchingObject (CbcModel *model) | |
CbcGeneralBranchingObject (const CbcGeneralBranchingObject &) | |
CbcGeneralBranchingObject & | operator= (const CbcGeneralBranchingObject &rhs) |
Assignment operator. | |
virtual CbcBranchingObject * | clone () const |
Clone. | |
virtual | ~CbcGeneralBranchingObject () |
virtual double | branch () |
Does next branch and updates state. | |
virtual void | checkIsCutoff (double cutoff) |
Double checks in case node can change its mind! Can change objective etc. | |
virtual void | print () |
Print something about branch - only if log level high. | |
void | state (double &objectiveValue, double &sumInfeasibilities, int &numberUnsatisfied, int which) const |
Fill in current objective etc. | |
void | setNode (CbcNode *node) |
Set CbcNode. | |
virtual CbcBranchObjType | type () const |
Return the type (an integer identifier) of this . | |
virtual int | compareOriginalObject (const CbcBranchingObject *brObj) const |
Compare the original object of this with the original object of brObj . | |
virtual CbcRangeCompare | compareBranchingObject (const CbcBranchingObject *brObj, const bool replaceIfOverlap=false) |
Compare the this with brObj . | |
int | numberSubProblems () const |
Number of subproblems. | |
int | decrementNumberLeft () |
Decrement number left and return number. | |
int | whichNode () const |
Which node we want to use. | |
void | setWhichNode (int value) |
Set which node we want to use. | |
const CbcSubProblem * | subProblem (int which) const |
Public Attributes | |
CbcSubProblem * | subProblems_ |
data | |
CbcNode * | node_ |
Node. | |
int | numberSubProblems_ |
Number of subproblems. | |
int | numberSubLeft_ |
Number of subproblems left. | |
int | whichNode_ |
Which node we want to use (-1 for default). | |
int | numberRows_ |
Number of rows. |
Definition at line 106 of file CbcGeneralDepth.hpp.
CbcGeneralBranchingObject::CbcGeneralBranchingObject | ( | ) |
CbcGeneralBranchingObject::CbcGeneralBranchingObject | ( | CbcModel * | model | ) |
CbcGeneralBranchingObject::CbcGeneralBranchingObject | ( | const CbcGeneralBranchingObject & | ) |
virtual CbcGeneralBranchingObject::~CbcGeneralBranchingObject | ( | ) | [virtual] |
CbcGeneralBranchingObject& CbcGeneralBranchingObject::operator= | ( | const CbcGeneralBranchingObject & | rhs | ) |
Assignment operator.
Reimplemented from CbcBranchingObject.
virtual CbcBranchingObject* CbcGeneralBranchingObject::clone | ( | ) | const [virtual] |
Clone.
Implements CbcBranchingObject.
virtual double CbcGeneralBranchingObject::branch | ( | ) | [virtual] |
Does next branch and updates state.
Implements CbcBranchingObject.
virtual void CbcGeneralBranchingObject::checkIsCutoff | ( | double | cutoff | ) | [virtual] |
Double checks in case node can change its mind! Can change objective etc.
Reimplemented from OsiBranchingObject.
virtual void CbcGeneralBranchingObject::print | ( | ) | [virtual] |
Print something about branch - only if log level high.
void CbcGeneralBranchingObject::state | ( | double & | objectiveValue, | |
double & | sumInfeasibilities, | |||
int & | numberUnsatisfied, | |||
int | which | |||
) | const |
Fill in current objective etc.
void CbcGeneralBranchingObject::setNode | ( | CbcNode * | node | ) | [inline] |
virtual CbcBranchObjType CbcGeneralBranchingObject::type | ( | ) | const [inline, virtual] |
Return the type (an integer identifier) of this
.
Implements CbcBranchingObject.
Definition at line 147 of file CbcGeneralDepth.hpp.
References GeneralDepthBranchObj.
virtual int CbcGeneralBranchingObject::compareOriginalObject | ( | const CbcBranchingObject * | brObj | ) | const [virtual] |
Compare the original object of this
with the original object of brObj
.
Assumes that there is an ordering of the original objects. This method should be invoked only if this
and brObj are of the same type. Return negative/0/positive depending on whether this
is smaller/same/larger than the argument.
virtual CbcRangeCompare CbcGeneralBranchingObject::compareBranchingObject | ( | const CbcBranchingObject * | brObj, | |
const bool | replaceIfOverlap = false | |||
) | [virtual] |
Compare the this
with brObj
.
this
and brObj
must be os the same type and must have the same original object, but they may have different feasible regions. Return the appropriate CbcRangeCompare value (first argument being the sub/superset if that's the case). In case of overlap (and if replaceIfOverlap
is true) replace the current branching object with one whose feasible region is the overlap.
int CbcGeneralBranchingObject::numberSubProblems | ( | ) | const [inline] |
Number of subproblems.
Definition at line 171 of file CbcGeneralDepth.hpp.
References numberSubProblems_.
int CbcGeneralBranchingObject::decrementNumberLeft | ( | ) | [inline] |
Decrement number left and return number.
Definition at line 175 of file CbcGeneralDepth.hpp.
References numberSubLeft_.
int CbcGeneralBranchingObject::whichNode | ( | ) | const [inline] |
Which node we want to use.
Definition at line 180 of file CbcGeneralDepth.hpp.
References whichNode_.
void CbcGeneralBranchingObject::setWhichNode | ( | int | value | ) | [inline] |
Set which node we want to use.
Definition at line 184 of file CbcGeneralDepth.hpp.
References whichNode_.
const CbcSubProblem* CbcGeneralBranchingObject::subProblem | ( | int | which | ) | const [inline] |
Definition at line 188 of file CbcGeneralDepth.hpp.
References subProblems_.
Number of subproblems.
Definition at line 199 of file CbcGeneralDepth.hpp.
Referenced by numberSubProblems().
Number of subproblems left.
Definition at line 201 of file CbcGeneralDepth.hpp.
Referenced by decrementNumberLeft().
Which node we want to use (-1 for default).
Definition at line 203 of file CbcGeneralDepth.hpp.
Referenced by setWhichNode(), and whichNode().
Number of rows.
Definition at line 205 of file CbcGeneralDepth.hpp.