Cbc trunk
Public Member Functions | Protected Attributes
CbcCompareBase Class Reference

#include <CbcCompareBase.hpp>

Inheritance diagram for CbcCompareBase:
Collaboration diagram for CbcCompareBase:

List of all members.

Public Member Functions

 CbcCompareBase ()
virtual bool newSolution (CbcModel *)
 Reconsider behaviour after discovering a new solution.
virtual bool newSolution (CbcModel *, double, int)
 Reconsider behaviour after discovering a new solution.
virtual bool every1000Nodes (CbcModel *, int)
virtual bool fullScan () const
 Returns true if wants code to do scan with alternate criterion NOTE - this is temporarily disabled.
virtual ~CbcCompareBase ()
virtual void generateCpp (FILE *)
 Create C++ lines to get to current state.
 CbcCompareBase (const CbcCompareBase &rhs)
CbcCompareBaseoperator= (const CbcCompareBase &rhs)
virtual CbcCompareBaseclone () const
 Clone.
virtual bool test (CbcNode *, CbcNode *)
 This is test function.
virtual bool alternateTest (CbcNode *x, CbcNode *y)
 This is alternate test function.
bool operator() (CbcNode *x, CbcNode *y)
bool equalityTest (CbcNode *x, CbcNode *y) const
 Further test if everything else equal.
void sayThreaded ()
 Say threaded.

Protected Attributes

CbcCompareBasetest_
bool threaded_

Detailed Description

Definition at line 27 of file CbcCompareBase.hpp.


Constructor & Destructor Documentation

CbcCompareBase::CbcCompareBase ( ) [inline]

Definition at line 30 of file CbcCompareBase.hpp.

virtual CbcCompareBase::~CbcCompareBase ( ) [inline, virtual]

Definition at line 75 of file CbcCompareBase.hpp.

CbcCompareBase::CbcCompareBase ( const CbcCompareBase rhs) [inline]

Definition at line 80 of file CbcCompareBase.hpp.


Member Function Documentation

virtual bool CbcCompareBase::newSolution ( CbcModel ) [inline, virtual]

Reconsider behaviour after discovering a new solution.

This allows any method to change its behaviour. It is called after each solution.

The method should return true if changes are made which will alter the evaluation criteria applied to a node. (So that in cases where the search tree is sorted, it can be properly rebuilt.)

Definition at line 45 of file CbcCompareBase.hpp.

virtual bool CbcCompareBase::newSolution ( CbcModel ,
double  ,
int   
) [inline, virtual]

Reconsider behaviour after discovering a new solution.

This allows any method to change its behaviour. It is called after each solution.

The method should return true if changes are made which will alter the evaluation criteria applied to a node. (So that in cases where the search tree is sorted, it can be properly rebuilt.)

Reimplemented in CbcCompareDefault.

Definition at line 57 of file CbcCompareBase.hpp.

virtual bool CbcCompareBase::every1000Nodes ( CbcModel ,
int   
) [inline, virtual]

Reimplemented in CbcCompareDefault.

Definition at line 64 of file CbcCompareBase.hpp.

virtual bool CbcCompareBase::fullScan ( ) const [inline, virtual]

Returns true if wants code to do scan with alternate criterion NOTE - this is temporarily disabled.

Definition at line 71 of file CbcCompareBase.hpp.

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

Create C++ lines to get to current state.

Reimplemented in CbcCompareDefault, CbcCompareDepth, CbcCompareEstimate, and CbcCompareObjective.

Definition at line 77 of file CbcCompareBase.hpp.

CbcCompareBase& CbcCompareBase::operator= ( const CbcCompareBase rhs) [inline]

Definition at line 86 of file CbcCompareBase.hpp.

virtual CbcCompareBase* CbcCompareBase::clone ( ) const [inline, virtual]

Clone.

Reimplemented in CbcCompareDefault, CbcCompareDepth, CbcCompareEstimate, and CbcCompareObjective.

Definition at line 95 of file CbcCompareBase.hpp.

virtual bool CbcCompareBase::test ( CbcNode ,
CbcNode  
) [inline, virtual]

This is test function.

Reimplemented in CbcCompareDefault, CbcCompareDepth, CbcCompareEstimate, and CbcCompareObjective.

Definition at line 101 of file CbcCompareBase.hpp.

virtual bool CbcCompareBase::alternateTest ( CbcNode x,
CbcNode y 
) [inline, virtual]

This is alternate test function.

Definition at line 106 of file CbcCompareBase.hpp.

bool CbcCompareBase::operator() ( CbcNode x,
CbcNode y 
) [inline]

Definition at line 110 of file CbcCompareBase.hpp.

bool CbcCompareBase::equalityTest ( CbcNode x,
CbcNode y 
) const [inline]

Further test if everything else equal.

Definition at line 114 of file CbcCompareBase.hpp.

void CbcCompareBase::sayThreaded ( ) [inline]

Say threaded.

Definition at line 132 of file CbcCompareBase.hpp.


Member Data Documentation

Definition at line 136 of file CbcCompareBase.hpp.

bool CbcCompareBase::threaded_ [protected]

Definition at line 138 of file CbcCompareBase.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines