Bonmin  1.7
Public Member Functions | Protected Attributes | Private Attributes
Bonmin::HeuristicDive Class Reference

#include <BonHeuristicDive.hpp>

Inheritance diagram for Bonmin::HeuristicDive:
Bonmin::HeuristicDiveFractional Bonmin::HeuristicDiveVectorLength

List of all members.

Public Member Functions

 HeuristicDive ()
 Default constructor.
 HeuristicDive (BonminSetup *setup)
 Constructor with setup.
 HeuristicDive (const HeuristicDive &copy)
 Copy constructor.
 ~HeuristicDive ()
 Destructor.
HeuristicDiveoperator= (const HeuristicDive &rhs)
 Assignment operator.
virtual CbcHeuristic * clone () const =0
 Clone.
virtual void resetModel (CbcModel *model)
 Resets stuff if model changes.
virtual void setSetup (BonminSetup *setup)
 Change setup used for heuristic.
void setPercentageToFix (double value)
 Set percentage of integer variables to fix at bounds.
virtual int solution (double &solutionValue, double *betterSolution)
 Performs heuristic.
virtual void setInternalVariables (TMINLP2TNLP *minlp)=0
 sets internal variables
virtual void selectVariableToBranch (TMINLP2TNLP *minlp, const vector< int > &integerColumns, const double *newSolution, int &bestColumn, int &bestRound)=0
 Selects the next variable to branch on.

Protected Attributes

BonminSetupsetup_
 Setup to use for local searches (will make copies).
double percentageToFix_
 Percentage of integer variables to fix at bounds.

Private Attributes

int howOften_
 How often to do (code can change)

Detailed Description

Definition at line 18 of file BonHeuristicDive.hpp.


Constructor & Destructor Documentation

Bonmin::HeuristicDive::HeuristicDive ( )

Default constructor.

Bonmin::HeuristicDive::HeuristicDive ( BonminSetup setup)

Constructor with setup.

Bonmin::HeuristicDive::HeuristicDive ( const HeuristicDive copy)

Copy constructor.

Bonmin::HeuristicDive::~HeuristicDive ( ) [inline]

Destructor.

Definition at line 31 of file BonHeuristicDive.hpp.


Member Function Documentation

HeuristicDive& Bonmin::HeuristicDive::operator= ( const HeuristicDive rhs)

Assignment operator.

virtual CbcHeuristic* Bonmin::HeuristicDive::clone ( ) const [pure virtual]
virtual void Bonmin::HeuristicDive::resetModel ( CbcModel *  model) [inline, virtual]

Resets stuff if model changes.

Definition at line 40 of file BonHeuristicDive.hpp.

virtual void Bonmin::HeuristicDive::setSetup ( BonminSetup setup) [inline, virtual]

Change setup used for heuristic.

Reimplemented in Bonmin::HeuristicDiveVectorLength, and Bonmin::HeuristicDiveFractional.

Definition at line 45 of file BonHeuristicDive.hpp.

References setup_.

void Bonmin::HeuristicDive::setPercentageToFix ( double  value) [inline]

Set percentage of integer variables to fix at bounds.

Definition at line 51 of file BonHeuristicDive.hpp.

References percentageToFix_.

virtual int Bonmin::HeuristicDive::solution ( double &  solutionValue,
double *  betterSolution 
) [virtual]

Performs heuristic.

virtual void Bonmin::HeuristicDive::setInternalVariables ( TMINLP2TNLP minlp) [pure virtual]

sets internal variables

Implemented in Bonmin::HeuristicDiveVectorLength, and Bonmin::HeuristicDiveFractional.

virtual void Bonmin::HeuristicDive::selectVariableToBranch ( TMINLP2TNLP minlp,
const vector< int > &  integerColumns,
const double *  newSolution,
int &  bestColumn,
int &  bestRound 
) [pure virtual]

Selects the next variable to branch on.

If bestColumn = -1, it means that no variable was found

Implemented in Bonmin::HeuristicDiveVectorLength, and Bonmin::HeuristicDiveFractional.


Member Data Documentation

Setup to use for local searches (will make copies).

Definition at line 71 of file BonHeuristicDive.hpp.

Referenced by setSetup().

Percentage of integer variables to fix at bounds.

Definition at line 74 of file BonHeuristicDive.hpp.

Referenced by setPercentageToFix().

How often to do (code can change)

Definition at line 78 of file BonHeuristicDive.hpp.


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