|
Bonmin
1.7
|
#include <BonHeuristicDive.hpp>
Public Member Functions | |
| HeuristicDive () | |
| Default constructor. | |
| HeuristicDive (BonminSetup *setup) | |
| Constructor with setup. | |
| HeuristicDive (const HeuristicDive ©) | |
| Copy constructor. | |
| ~HeuristicDive () | |
| Destructor. | |
| HeuristicDive & | operator= (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 | |
| BonminSetup * | setup_ |
| 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) | |
Definition at line 18 of file BonHeuristicDive.hpp.
| 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.
| HeuristicDive& Bonmin::HeuristicDive::operator= | ( | const HeuristicDive & | rhs | ) |
Assignment operator.
| virtual CbcHeuristic* Bonmin::HeuristicDive::clone | ( | ) | const [pure virtual] |
Clone.
Implemented in Bonmin::HeuristicDiveVectorLength, and Bonmin::HeuristicDiveFractional.
| 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.
BonminSetup* Bonmin::HeuristicDive::setup_ [protected] |
Setup to use for local searches (will make copies).
Definition at line 71 of file BonHeuristicDive.hpp.
Referenced by setSetup().
double Bonmin::HeuristicDive::percentageToFix_ [protected] |
Percentage of integer variables to fix at bounds.
Definition at line 74 of file BonHeuristicDive.hpp.
Referenced by setPercentageToFix().
int Bonmin::HeuristicDive::howOften_ [private] |
How often to do (code can change)
Definition at line 78 of file BonHeuristicDive.hpp.
1.7.5.1