Dip  0.92.4
Public Member Functions | Protected Attributes | List of all members
CbcCompareBase Class Reference

#include <CbcCompareBase.hpp>

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

Public Member Functions

 CbcCompareBase ()
 
virtual bool newSolution (CbcModel *)
 Reconsider behaviour after discovering a new solution. More...
 
virtual bool newSolution (CbcModel *, double, int)
 Reconsider behaviour after discovering a new solution. More...
 
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. More...
 
virtual ~CbcCompareBase ()
 
virtual void generateCpp (FILE *)
 Create C++ lines to get to current state. More...
 
 CbcCompareBase (const CbcCompareBase &rhs)
 
CbcCompareBaseoperator= (const CbcCompareBase &rhs)
 
virtual CbcCompareBaseclone () const
 Clone. More...
 
virtual bool test (CbcNode *, CbcNode *)
 This is test function. More...
 
virtual bool alternateTest (CbcNode *x, CbcNode *y)
 This is alternate test function. More...
 
bool operator() (CbcNode *x, CbcNode *y)
 
bool equalityTest (CbcNode *x, CbcNode *y) const
 Further test if everything else equal. More...
 
void sayThreaded ()
 Say threaded. More...
 

Protected Attributes

CbcCompareBasetest_
 
bool threaded_
 

Detailed Description

Definition at line 26 of file CbcCompareBase.hpp.

Constructor & Destructor Documentation

CbcCompareBase::CbcCompareBase ( )
inline

Definition at line 29 of file CbcCompareBase.hpp.

References test_, and threaded_.

virtual CbcCompareBase::~CbcCompareBase ( )
inlinevirtual

Definition at line 77 of file CbcCompareBase.hpp.

CbcCompareBase::CbcCompareBase ( const CbcCompareBase rhs)
inline

Definition at line 82 of file CbcCompareBase.hpp.

References test_, and threaded_.

Member Function Documentation

virtual bool CbcCompareBase::newSolution ( CbcModel )
inlinevirtual

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   
)
inlinevirtual

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, and CbcCompareUser.

Definition at line 57 of file CbcCompareBase.hpp.

virtual bool CbcCompareBase::every1000Nodes ( CbcModel ,
int   
)
inlinevirtual

Reimplemented in CbcCompareDefault, and CbcCompareUser.

Definition at line 64 of file CbcCompareBase.hpp.

virtual bool CbcCompareBase::fullScan ( ) const
inlinevirtual

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

Reimplemented in CbcCompareUser.

Definition at line 72 of file CbcCompareBase.hpp.

virtual void CbcCompareBase::generateCpp ( FILE *  )
inlinevirtual

Create C++ lines to get to current state.

Reimplemented in CbcCompareDefault, CbcCompareEstimate, CbcCompareObjective, and CbcCompareDepth.

Definition at line 79 of file CbcCompareBase.hpp.

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

Definition at line 89 of file CbcCompareBase.hpp.

References test_, and threaded_.

virtual CbcCompareBase* CbcCompareBase::clone ( ) const
inlinevirtual

Clone.

Reimplemented in CbcCompareDefault, CbcCompareEstimate, CbcCompareObjective, CbcCompareDepth, and CbcCompareUser.

Definition at line 99 of file CbcCompareBase.hpp.

virtual bool CbcCompareBase::test ( CbcNode ,
CbcNode  
)
inlinevirtual
virtual bool CbcCompareBase::alternateTest ( CbcNode x,
CbcNode y 
)
inlinevirtual

This is alternate test function.

Reimplemented in CbcCompareUser.

Definition at line 112 of file CbcCompareBase.hpp.

References test().

Referenced by CbcCompare::alternateTest().

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

Definition at line 117 of file CbcCompareBase.hpp.

References test().

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

Further test if everything else equal.

Definition at line 122 of file CbcCompareBase.hpp.

References CbcNode::nodeInfo(), CbcNodeInfo::nodeNumber(), CbcNode::nodeNumber(), and threaded_.

void CbcCompareBase::sayThreaded ( )
inline

Say threaded.

Definition at line 141 of file CbcCompareBase.hpp.

References threaded_.

Member Data Documentation

CbcCompareBase* CbcCompareBase::test_
protected

Definition at line 147 of file CbcCompareBase.hpp.

Referenced by CbcCompareBase(), and operator=().

bool CbcCompareBase::threaded_
protected

Definition at line 149 of file CbcCompareBase.hpp.

Referenced by CbcCompareBase(), equalityTest(), operator=(), and sayThreaded().


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