Bonmin  1.7
Public Member Functions | Private Attributes
Bonmin::DiverCompare Class Reference

#include <BonDiver.hpp>

List of all members.

Public Member Functions

 DiverCompare ()
virtual ~DiverCompare ()
 DiverCompare (const DiverCompare &rhs)
DiverCompareoperator= (const DiverCompare &rhs)
virtual CbcCompareBase * clone () const
 Clone.
virtual bool test (CbcNode *x, CbcNode *y)
 This is test function.
virtual bool newSolution (CbcModel *model)
 Called after each new solution.
virtual bool newSolution (CbcModel *model, double objectiveAtContinuous, int numberInfeasibilitiesAtContinuous)
 Called after each new solution.
virtual bool every1000Nodes (CbcModel *model, int numberNodes)
 Called 1000 nodes.
void setDiver (CbcDfsDiver *diver)
 Set the dfs diver to use.
void setNumberSolToStopDive (int val)
 Set numberSolToStopDive_.
void setNumberNodesToLimitTreeSize (int val)
 Set numberNodesToLimitTreeSize_.
void setComparisonDive (const CbcCompareBase &val)
 Set comparison method when diving.
void setComparisonBound (const CbcCompareBase &val)
 Set comparison method when closing bound.

Private Attributes

CbcDfsDiverdiver_
 Pointer to the CbcDfsDiver handling the tree.
int numberSolToStopDive_
 Number of solution before we command diver_ to stop diving.
int numberNodesToLimitTreeSize_
 Number of nodes before we command diver_ to limit the tree size.
CbcCompareBase * comparisonDive_
 Comparison method used in diving mode.
CbcCompareBase * comparisonBound_
 Comparison method used bound mode.
CbcCompareDepth comparisonDepth_
 Comparison method used when limit tree size.

Detailed Description

Definition at line 309 of file BonDiver.hpp.


Constructor & Destructor Documentation

Bonmin::DiverCompare::DiverCompare ( ) [inline]

Definition at line 313 of file BonDiver.hpp.

Referenced by clone().

virtual Bonmin::DiverCompare::~DiverCompare ( ) [inline, virtual]

Definition at line 323 of file BonDiver.hpp.

References comparisonBound_, and comparisonDive_.

Bonmin::DiverCompare::DiverCompare ( const DiverCompare rhs) [inline]

Definition at line 330 of file BonDiver.hpp.


Member Function Documentation

DiverCompare& Bonmin::DiverCompare::operator= ( const DiverCompare rhs) [inline]
virtual CbcCompareBase* Bonmin::DiverCompare::clone ( ) const [inline, virtual]

Clone.

Definition at line 358 of file BonDiver.hpp.

References DiverCompare().

virtual bool Bonmin::DiverCompare::test ( CbcNode *  x,
CbcNode *  y 
) [virtual]

This is test function.

virtual bool Bonmin::DiverCompare::newSolution ( CbcModel *  model) [virtual]

Called after each new solution.

virtual bool Bonmin::DiverCompare::newSolution ( CbcModel *  model,
double  objectiveAtContinuous,
int  numberInfeasibilitiesAtContinuous 
) [virtual]

Called after each new solution.

virtual bool Bonmin::DiverCompare::every1000Nodes ( CbcModel *  model,
int  numberNodes 
) [virtual]

Called 1000 nodes.

Return true if want tree re-sorted.

void Bonmin::DiverCompare::setDiver ( CbcDfsDiver diver) [inline]

Set the dfs diver to use.

Definition at line 379 of file BonDiver.hpp.

References diver_.

void Bonmin::DiverCompare::setNumberSolToStopDive ( int  val) [inline]

Set numberSolToStopDive_.

Definition at line 385 of file BonDiver.hpp.

References numberSolToStopDive_.

void Bonmin::DiverCompare::setNumberNodesToLimitTreeSize ( int  val) [inline]

Set numberNodesToLimitTreeSize_.

Definition at line 391 of file BonDiver.hpp.

References numberNodesToLimitTreeSize_.

void Bonmin::DiverCompare::setComparisonDive ( const CbcCompareBase &  val) [inline]

Set comparison method when diving.

Definition at line 397 of file BonDiver.hpp.

References comparisonDive_.

void Bonmin::DiverCompare::setComparisonBound ( const CbcCompareBase &  val) [inline]

Set comparison method when closing bound.

Definition at line 402 of file BonDiver.hpp.

References comparisonBound_.


Member Data Documentation

Pointer to the CbcDfsDiver handling the tree.

Definition at line 408 of file BonDiver.hpp.

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

Number of solution before we command diver_ to stop diving.

Definition at line 410 of file BonDiver.hpp.

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

Number of nodes before we command diver_ to limit the tree size.

Definition at line 412 of file BonDiver.hpp.

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

CbcCompareBase* Bonmin::DiverCompare::comparisonDive_ [private]

Comparison method used in diving mode.

Definition at line 414 of file BonDiver.hpp.

Referenced by operator=(), setComparisonDive(), and ~DiverCompare().

CbcCompareBase* Bonmin::DiverCompare::comparisonBound_ [private]

Comparison method used bound mode.

Definition at line 416 of file BonDiver.hpp.

Referenced by operator=(), setComparisonBound(), and ~DiverCompare().

CbcCompareDepth Bonmin::DiverCompare::comparisonDepth_ [private]

Comparison method used when limit tree size.

Definition at line 418 of file BonDiver.hpp.


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