Branching object for Special ordered sets. More...
#include <CbcBranchLink.hpp>
Public Member Functions | |
CbcLinkBranchingObject () | |
CbcLinkBranchingObject (CbcModel *model, const CbcLink *set, int way, double separator) | |
CbcLinkBranchingObject (const CbcLinkBranchingObject &) | |
CbcLinkBranchingObject & | operator= (const CbcLinkBranchingObject &rhs) |
virtual CbcBranchingObject * | clone () const |
Clone. | |
virtual | ~CbcLinkBranchingObject () |
virtual double | branch () |
Does next branch and updates state. | |
virtual void | print () |
Print something about branch - only if log level high. | |
virtual int | type () const |
Return the type (an integer identifier) of this . | |
virtual CbcRangeCompare | compareBranchingObject (const CbcBranchingObject *brObj, const bool replaceIfOverlap=false) |
Compare the this with brObj . | |
Private Attributes | |
const CbcLink * | set_ |
data | |
double | separator_ |
separator |
Branching object for Special ordered sets.
Variable_ is the set id number (redundant, as the object also holds a pointer to the set.
Definition at line 95 of file CbcBranchLink.hpp.
CbcLinkBranchingObject::CbcLinkBranchingObject | ( | ) |
CbcLinkBranchingObject::CbcLinkBranchingObject | ( | CbcModel * | model, | |
const CbcLink * | set, | |||
int | way, | |||
double | separator | |||
) |
CbcLinkBranchingObject::CbcLinkBranchingObject | ( | const CbcLinkBranchingObject & | ) |
virtual CbcLinkBranchingObject::~CbcLinkBranchingObject | ( | ) | [virtual] |
CbcLinkBranchingObject& CbcLinkBranchingObject::operator= | ( | const CbcLinkBranchingObject & | rhs | ) |
virtual CbcBranchingObject* CbcLinkBranchingObject::clone | ( | ) | const [virtual] |
Clone.
Implements CbcBranchingObject.
virtual double CbcLinkBranchingObject::branch | ( | ) | [virtual] |
Does next branch and updates state.
Implements CbcBranchingObject.
virtual void CbcLinkBranchingObject::print | ( | ) | [virtual] |
Print something about branch - only if log level high.
virtual int CbcLinkBranchingObject::type | ( | ) | const [inline, virtual] |
Return the type (an integer identifier) of this
.
Implements CbcBranchingObject.
Definition at line 126 of file CbcBranchLink.hpp.
virtual CbcRangeCompare CbcLinkBranchingObject::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.
Implements CbcBranchingObject.
const CbcLink* CbcLinkBranchingObject::set_ [private] |
data
Definition at line 141 of file CbcBranchLink.hpp.
double CbcLinkBranchingObject::separator_ [private] |
separator
Definition at line 143 of file CbcBranchLink.hpp.