Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
CbcCompareUser Class Reference

#include <CbcCompareUser.hpp>

+ Inheritance diagram for CbcCompareUser:
+ Collaboration diagram for CbcCompareUser:

Public Member Functions

 CbcCompareUser ()
 CbcCompareUser (double weight)
 CbcCompareUser (const CbcCompareUser &rhs)
CbcCompareUseroperator= (const CbcCompareUser &rhs)
virtual CbcCompareBaseclone () const
 Clone. More...
 ~CbcCompareUser ()
virtual bool test (CbcNode *x, CbcNode *y)
 This is test function. More...
virtual bool alternateTest (CbcNode *x, CbcNode *y)
 This is alternate test function. More...
virtual bool newSolution (CbcModel *model, double objectiveAtContinuous, int numberInfeasibilitiesAtContinuous)
 Reconsider behaviour after discovering a new solution. More...
virtual bool fullScan () const
 Returns true if wants code to do scan with alternate criterion. More...
virtual bool every1000Nodes (CbcModel *model, int numberNodes)
double getWeight () const
void setWeight (double weight)
- Public Member Functions inherited from CbcCompareBase
 CbcCompareBase ()
virtual bool newSolution (CbcModel *)
 Reconsider behaviour after discovering a new solution. More...
virtual ~CbcCompareBase ()
virtual void generateCpp (FILE *)
 Create C++ lines to get to current state. More...
 CbcCompareBase (const CbcCompareBase &rhs)
CbcCompareBaseoperator= (const CbcCompareBase &rhs)
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

double weight_
double saveWeight_
int numberSolutions_
int count_
int treeSize_
- Protected Attributes inherited from CbcCompareBase
bool threaded_

Detailed Description

Definition at line 17 of file CbcCompareUser.hpp.

Constructor & Destructor Documentation

CbcCompareUser::CbcCompareUser ( )
CbcCompareUser::CbcCompareUser ( double  weight)
CbcCompareUser::CbcCompareUser ( const CbcCompareUser rhs)
CbcCompareUser::~CbcCompareUser ( )

Member Function Documentation

CbcCompareUser& CbcCompareUser::operator= ( const CbcCompareUser rhs)
virtual CbcCompareBase* CbcCompareUser::clone ( ) const


Reimplemented from CbcCompareBase.

virtual bool CbcCompareUser::test ( CbcNode ,

This is test function.

Reimplemented from CbcCompareBase.

virtual bool CbcCompareUser::alternateTest ( CbcNode x,
CbcNode y 

This is alternate test function.

Reimplemented from CbcCompareBase.

virtual bool CbcCompareUser::newSolution ( CbcModel ,
double  ,

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 from CbcCompareBase.

virtual bool CbcCompareUser::fullScan ( ) const

Returns true if wants code to do scan with alternate criterion.

Reimplemented from CbcCompareBase.

virtual bool CbcCompareUser::every1000Nodes ( CbcModel model,
int  numberNodes 

Reimplemented from CbcCompareBase.

double CbcCompareUser::getWeight ( ) const

Definition at line 53 of file CbcCompareUser.hpp.

void CbcCompareUser::setWeight ( double  weight)

Definition at line 55 of file CbcCompareUser.hpp.

Member Data Documentation

double CbcCompareUser::weight_

Definition at line 59 of file CbcCompareUser.hpp.

double CbcCompareUser::saveWeight_

Definition at line 61 of file CbcCompareUser.hpp.

int CbcCompareUser::numberSolutions_

Definition at line 63 of file CbcCompareUser.hpp.

int CbcCompareUser::count_

Definition at line 65 of file CbcCompareUser.hpp.

int CbcCompareUser::treeSize_

Definition at line 67 of file CbcCompareUser.hpp.

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