CbcGeneralDepth Class Reference

Define a catch all class. More...

#include <CbcGeneralDepth.hpp>

Inheritance diagram for CbcGeneralDepth:
Inheritance graph
[legend]
Collaboration diagram for CbcGeneralDepth:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CbcGeneralDepth ()
 CbcGeneralDepth (CbcModel *model, int maximumDepth)
 Useful constructor Just needs to point to model.
 CbcGeneralDepth (const CbcGeneralDepth &)
virtual CbcObjectclone () const
 Clone.
CbcGeneralDepthoperator= (const CbcGeneralDepth &rhs)
 Assignment operator.
 ~CbcGeneralDepth ()
virtual double infeasibility (const OsiBranchingInformation *info, int &preferredWay) const
 Infeasibility - large is 0.5.
virtual void feasibleRegion ()
 This looks at solution and sets bounds to contain solution.
virtual CbcBranchingObjectcreateCbcBranch (OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
 Creates a branching object.
int maximumNodes () const
 Return maximum number of nodes.
int maximumDepth () const
 Get maximum depth.
void setMaximumDepth (int value)
 Set maximum depth.
int numberNodes () const
 Return number of nodes.
int whichSolution () const
 Get which solution.
ClpNodenodeInfo (int which)
 Get ClpNode info.
virtual void redoSequenceEtc (CbcModel *model, int numberColumns, const int *originalColumns)
 Redoes data when sequence numbers change.

Protected Attributes

int maximumDepth_
 data Maximum depth
int maximumNodes_
 Maximum nodes.
int whichSolution_
 Which node has solution (or -1).
int numberNodes_
 Number of valid nodes (including whichSolution_).
ClpNodeStuffnodeInfo_
 For solving nodes.

Detailed Description

Define a catch all class.

This will create a list of subproblems using partial evaluation

Definition at line 24 of file CbcGeneralDepth.hpp.


Constructor & Destructor Documentation

CbcGeneralDepth::CbcGeneralDepth (  ) 
CbcGeneralDepth::CbcGeneralDepth ( CbcModel model,
int  maximumDepth 
)

Useful constructor Just needs to point to model.

Initial version does evaluation to depth N This is stored in CbcModel but may be better here

CbcGeneralDepth::CbcGeneralDepth ( const CbcGeneralDepth  ) 
CbcGeneralDepth::~CbcGeneralDepth (  ) 

Member Function Documentation

virtual CbcObject* CbcGeneralDepth::clone (  )  const [virtual]

Clone.

Implements CbcGeneral.

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

Assignment operator.

Reimplemented from CbcGeneral.

virtual double CbcGeneralDepth::infeasibility ( const OsiBranchingInformation info,
int &  preferredWay 
) const [virtual]

Infeasibility - large is 0.5.

Reimplemented from CbcGeneral.

virtual void CbcGeneralDepth::feasibleRegion (  )  [virtual]

This looks at solution and sets bounds to contain solution.

Implements CbcGeneral.

virtual CbcBranchingObject* CbcGeneralDepth::createCbcBranch ( OsiSolverInterface solver,
const OsiBranchingInformation info,
int  way 
) [virtual]

Creates a branching object.

Reimplemented from CbcGeneral.

int CbcGeneralDepth::maximumNodes (  )  const [inline]

Return maximum number of nodes.

Definition at line 62 of file CbcGeneralDepth.hpp.

References maximumNodes_.

int CbcGeneralDepth::maximumDepth (  )  const [inline]

Get maximum depth.

Definition at line 66 of file CbcGeneralDepth.hpp.

References maximumDepth_.

void CbcGeneralDepth::setMaximumDepth ( int  value  )  [inline]

Set maximum depth.

Definition at line 70 of file CbcGeneralDepth.hpp.

References maximumDepth_.

int CbcGeneralDepth::numberNodes (  )  const [inline]

Return number of nodes.

Definition at line 74 of file CbcGeneralDepth.hpp.

References numberNodes_.

int CbcGeneralDepth::whichSolution (  )  const [inline]

Get which solution.

Definition at line 78 of file CbcGeneralDepth.hpp.

References whichSolution_.

ClpNode* CbcGeneralDepth::nodeInfo ( int  which  )  [inline]

Get ClpNode info.

Definition at line 82 of file CbcGeneralDepth.hpp.

References ClpNodeStuff::nodeInfo_, and nodeInfo_.

virtual void CbcGeneralDepth::redoSequenceEtc ( CbcModel model,
int  numberColumns,
const int *  originalColumns 
) [virtual]

Redoes data when sequence numbers change.

Implements CbcGeneral.


Member Data Documentation

data Maximum depth

Definition at line 92 of file CbcGeneralDepth.hpp.

Referenced by maximumDepth(), and setMaximumDepth().

Maximum nodes.

Definition at line 94 of file CbcGeneralDepth.hpp.

Referenced by maximumNodes().

int CbcGeneralDepth::whichSolution_ [mutable, protected]

Which node has solution (or -1).

Definition at line 96 of file CbcGeneralDepth.hpp.

Referenced by whichSolution().

int CbcGeneralDepth::numberNodes_ [mutable, protected]

Number of valid nodes (including whichSolution_).

Definition at line 98 of file CbcGeneralDepth.hpp.

Referenced by numberNodes().

For solving nodes.

Definition at line 100 of file CbcGeneralDepth.hpp.

Referenced by nodeInfo().


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

Generated on 5 Apr 2015 for Dip-All by  doxygen 1.6.1