CbcGeneralBranchingObject Class Reference

#include <CbcBranchActual.hpp>

Inheritance diagram for CbcGeneralBranchingObject:
CbcBranchingObject

List of all members.

Public Member Functions

 CbcGeneralBranchingObject ()
 CbcGeneralBranchingObject (CbcModel *model)
 CbcGeneralBranchingObject (const CbcGeneralBranchingObject &)
CbcGeneralBranchingObjectoperator= (const CbcGeneralBranchingObject &rhs)
 Assignment operator.
virtual CbcBranchingObjectclone () 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 int 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 CbcSubProblemsubProblem (int which) const

Public Attributes

CbcSubProblemsubProblems_
 data
CbcNodenode_
 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.

Detailed Description

Definition at line 1602 of file CbcBranchActual.hpp.


Constructor & Destructor Documentation

CbcGeneralBranchingObject::CbcGeneralBranchingObject (  ) 
CbcGeneralBranchingObject::CbcGeneralBranchingObject ( CbcModel model  ) 
CbcGeneralBranchingObject::CbcGeneralBranchingObject ( const CbcGeneralBranchingObject  ) 
virtual CbcGeneralBranchingObject::~CbcGeneralBranchingObject (  )  [virtual]

Member Function Documentation

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.

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]

Set CbcNode.

Definition at line 1639 of file CbcBranchActual.hpp.

virtual int CbcGeneralBranchingObject::type (  )  const [inline, virtual]

Return the type (an integer identifier) of this.

Implements CbcBranchingObject.

Definition at line 1642 of file CbcBranchActual.hpp.

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 1664 of file CbcBranchActual.hpp.

int CbcGeneralBranchingObject::decrementNumberLeft (  )  [inline]

Decrement number left and return number.

Definition at line 1667 of file CbcBranchActual.hpp.

int CbcGeneralBranchingObject::whichNode (  )  const [inline]

Which node we want to use.

Definition at line 1670 of file CbcBranchActual.hpp.

void CbcGeneralBranchingObject::setWhichNode ( int  value  )  [inline]

Set which node we want to use.

Definition at line 1673 of file CbcBranchActual.hpp.

const CbcSubProblem* CbcGeneralBranchingObject::subProblem ( int  which  )  const [inline]

Definition at line 1676 of file CbcBranchActual.hpp.


Member Data Documentation

data

Definition at line 1682 of file CbcBranchActual.hpp.

Node.

Definition at line 1684 of file CbcBranchActual.hpp.

Number of subproblems.

Definition at line 1686 of file CbcBranchActual.hpp.

Number of subproblems left.

Definition at line 1688 of file CbcBranchActual.hpp.

Which node we want to use (-1 for default).

Definition at line 1690 of file CbcBranchActual.hpp.

Number of rows.

Definition at line 1692 of file CbcBranchActual.hpp.


The documentation for this class was generated from the following file:

Generated on Tue Nov 24 00:15:26 2009 by  doxygen 1.6.1