CbcTreeArray Class Reference

#include <CbcTree.hpp>

Inheritance diagram for CbcTreeArray:

Inheritance graph
[legend]
Collaboration diagram for CbcTreeArray:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CbcTreeArray ()
 CbcTreeArray (const CbcTreeArray &rhs)
CbcTreeArrayoperator= (const CbcTreeArray &rhs)
virtual ~CbcTreeArray ()
virtual CbcTreeclone () const
 Clone.
virtual void generateCpp (FILE *)
 Create C++ lines to get to current state.
Heap access and maintenance methods
void setComparison (CbcCompareBase &compare)
 Set comparison function and resort heap.
virtual void push (CbcNode *x)
 Add a node to the heap.
virtual CbcNodebestNode (double cutoff)
 Gets best node and takes off heap.
vector methods
virtual bool empty ()
 Test if empty *** note may be overridden.
Search tree maintenance
void cleanTree (CbcModel *model, double cutoff, double &bestPossibleObjective)
 Prune the tree using an objective function cutoff.
virtual double getBestPossibleObjective ()
 Get best possible objective function in the tree.

Protected Attributes

CbcNodelastNode_
 Returns Last node.
CbcNodelastNodePopped_
 Last node popped.
int switches_
 Not used yet.

Detailed Description

Definition at line 153 of file CbcTree.hpp.


Constructor & Destructor Documentation

CbcTreeArray::CbcTreeArray (  ) 

CbcTreeArray::CbcTreeArray ( const CbcTreeArray rhs  ) 

virtual CbcTreeArray::~CbcTreeArray (  )  [virtual]


Member Function Documentation

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

virtual CbcTree* CbcTreeArray::clone (  )  const [virtual]

Clone.

Reimplemented from CbcTree.

virtual void CbcTreeArray::generateCpp ( FILE *   )  [inline, virtual]

Create C++ lines to get to current state.

Reimplemented from CbcTree.

Definition at line 170 of file CbcTree.hpp.

void CbcTreeArray::setComparison ( CbcCompareBase compare  ) 

Set comparison function and resort heap.

Reimplemented from CbcTree.

virtual void CbcTreeArray::push ( CbcNode x  )  [virtual]

Add a node to the heap.

Reimplemented from CbcTree.

virtual CbcNode* CbcTreeArray::bestNode ( double  cutoff  )  [virtual]

Gets best node and takes off heap.

Reimplemented from CbcTree.

virtual bool CbcTreeArray::empty (  )  [virtual]

Test if empty *** note may be overridden.

Reimplemented from CbcTree.

void CbcTreeArray::cleanTree ( CbcModel model,
double  cutoff,
double &  bestPossibleObjective 
) [virtual]

Prune the tree using an objective function cutoff.

This routine removes all nodes with objective worst than the specified cutoff value. It also sets bestPossibleObjective to best of all on tree before deleting.

Reimplemented from CbcTree.

virtual double CbcTreeArray::getBestPossibleObjective (  )  [virtual]

Get best possible objective function in the tree.

Reimplemented from CbcTree.


Member Data Documentation

CbcNode* CbcTreeArray::lastNode_ [protected]

Returns Last node.

Definition at line 211 of file CbcTree.hpp.

CbcNode* CbcTreeArray::lastNodePopped_ [protected]

Last node popped.

Definition at line 213 of file CbcTree.hpp.

int CbcTreeArray::switches_ [protected]

Not used yet.

Definition at line 215 of file CbcTree.hpp.


The documentation for this class was generated from the following file:
Generated on Sat May 22 03:10:17 2010 by  doxygen 1.4.7