#include <CbcBranchCut.hpp>
Inheritance diagram for CbcCutBranchingObject:
Public Member Functions | |
CbcCutBranchingObject () | |
Default constructor. | |
CbcCutBranchingObject (CbcModel *model, OsiRowCut &down, OsiRowCut &up, bool canFix) | |
Create a cut branching object. | |
CbcCutBranchingObject (const CbcCutBranchingObject &) | |
Copy constructor. | |
CbcCutBranchingObject & | operator= (const CbcCutBranchingObject &rhs) |
Assignment operator. | |
virtual CbcBranchingObject * | clone () const |
Clone. | |
virtual | ~CbcCutBranchingObject () |
Destructor. | |
virtual double | branch (bool normalBranch=false) |
Sets the bounds for variables or adds a cut depending on the current arm of the branch and advances the object state to the next arm. | |
virtual void | print (bool normalBranch) |
Print something about branch - only if log level high. | |
virtual bool | boundBranch () const |
Return true if branch should fix variables. | |
Protected Attributes | |
OsiRowCut | down_ |
Cut for the down arm (way_ = -1). | |
OsiRowCut | up_ |
Cut for the up arm (way_ = 1). | |
bool | canFix_ |
True if one way can fix variables. |
This object can specify a two-way branch in terms of two cuts
Definition at line 103 of file CbcBranchCut.hpp.
CbcCutBranchingObject::CbcCutBranchingObject | ( | ) |
Default constructor.
CbcCutBranchingObject::CbcCutBranchingObject | ( | CbcModel * | model, | |
OsiRowCut & | down, | |||
OsiRowCut & | up, | |||
bool | canFix | |||
) |
Create a cut branching object.
Cut down will applied on way=-1, up on way==1 Assumed down will be first so way_ set to -1
CbcCutBranchingObject::CbcCutBranchingObject | ( | const CbcCutBranchingObject & | ) |
Copy constructor.
virtual CbcCutBranchingObject::~CbcCutBranchingObject | ( | ) | [virtual] |
Destructor.
CbcCutBranchingObject& CbcCutBranchingObject::operator= | ( | const CbcCutBranchingObject & | rhs | ) |
Assignment operator.
virtual CbcBranchingObject* CbcCutBranchingObject::clone | ( | ) | const [virtual] |
virtual double CbcCutBranchingObject::branch | ( | bool | normalBranch = false |
) | [virtual] |
Sets the bounds for variables or adds a cut depending on the current arm of the branch and advances the object state to the next arm.
Returns change in guessed objective on next branch
Implements CbcBranchingObject.
virtual void CbcCutBranchingObject::print | ( | bool | normalBranch | ) | [virtual] |
virtual bool CbcCutBranchingObject::boundBranch | ( | ) | const [virtual] |
OsiRowCut CbcCutBranchingObject::down_ [protected] |
OsiRowCut CbcCutBranchingObject::up_ [protected] |
bool CbcCutBranchingObject::canFix_ [protected] |