#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. Returns change in guessed objective on next branch. | |
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.
|
Default constructor.
|
|
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 |
|
Copy constructor.
|
|
Destructor.
|
|
Assignment operator.
|
|
Clone.
Implements CbcBranchingObject. |
|
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. |
|
Print something about branch - only if log level high.
Reimplemented from CbcBranchingObject. |
|
Return true if branch should fix variables.
Reimplemented from CbcBranchingObject. |
|
Cut for the down arm (way_ = -1).
Definition at line 145 of file CbcBranchCut.hpp. |
|
Cut for the up arm (way_ = 1).
Definition at line 147 of file CbcBranchCut.hpp. |
|
True if one way can fix variables.
Definition at line 149 of file CbcBranchCut.hpp. |