CbcCutBranchingObject Class Reference

Cut branching object. More...

#include <CbcBranchCut.hpp>

Inheritance diagram for CbcCutBranchingObject:

Inheritance graph
[legend]
Collaboration diagram for CbcCutBranchingObject:

Collaboration graph
[legend]
List of all members.

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.
CbcCutBranchingObjectoperator= (const CbcCutBranchingObject &rhs)
 Assignment operator.
virtual CbcBranchingObjectclone () 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.

Detailed Description

Cut branching object.

This object can specify a two-way branch in terms of two cuts

Definition at line 103 of file CbcBranchCut.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

CbcCutBranchingObject& CbcCutBranchingObject::operator= ( const CbcCutBranchingObject rhs  ) 

Assignment operator.

virtual CbcBranchingObject* CbcCutBranchingObject::clone (  )  const [virtual]

Clone.

Implements CbcBranchingObject.

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]

Print something about branch - only if log level high.

Reimplemented from CbcBranchingObject.

virtual bool CbcCutBranchingObject::boundBranch (  )  const [virtual]

Return true if branch should fix variables.

Reimplemented from CbcBranchingObject.


Member Data Documentation

OsiRowCut CbcCutBranchingObject::down_ [protected]

Cut for the down arm (way_ = -1).

Definition at line 145 of file CbcBranchCut.hpp.

OsiRowCut CbcCutBranchingObject::up_ [protected]

Cut for the up arm (way_ = 1).

Definition at line 147 of file CbcBranchCut.hpp.

bool CbcCutBranchingObject::canFix_ [protected]

True if one way can fix variables.

Definition at line 149 of file CbcBranchCut.hpp.


The documentation for this class was generated from the following file:
Generated on Thu May 15 21:59:53 2008 by  doxygen 1.4.7