#include <BonHeuristicDive.hpp>


Public Member Functions | |
| HeuristicDive () | |
| Default constructor. More... | |
| HeuristicDive (BonminSetup *setup) | |
| Constructor with setup. More... | |
| HeuristicDive (const HeuristicDive ©) | |
| Copy constructor. More... | |
| ~HeuristicDive () | |
| Destructor. More... | |
| HeuristicDive & | operator= (const HeuristicDive &rhs) |
| Assignment operator. More... | |
| virtual CbcHeuristic * | clone () const =0 |
| Clone. More... | |
| virtual void | resetModel (CbcModel *model) |
| Resets stuff if model changes. More... | |
| virtual void | setSetup (BonminSetup *setup) |
| Change setup used for heuristic. More... | |
| void | setPercentageToFix (double value) |
| Set percentage of integer variables to fix at bounds. More... | |
| virtual int | solution (double &solutionValue, double *betterSolution) |
| Performs heuristic. More... | |
| virtual void | setInternalVariables (TMINLP2TNLP *minlp)=0 |
| sets internal variables More... | |
| virtual void | selectVariableToBranch (TMINLP2TNLP *minlp, const vector< int > &integerColumns, const double *newSolution, int &bestColumn, int &bestRound)=0 |
| Selects the next variable to branch on. More... | |
Protected Attributes | |
| BonminSetup * | setup_ |
| Setup to use for local searches (will make copies). More... | |
| double | percentageToFix_ |
| Percentage of integer variables to fix at bounds. More... | |
Private Attributes | |
| int | howOften_ |
| How often to do (code can change) More... | |
Definition at line 18 of file BonHeuristicDive.hpp.
| Bonmin::HeuristicDive::HeuristicDive | ( | ) |
Default constructor.
Definition at line 28 of file BonHeuristicDive.cpp.
| Bonmin::HeuristicDive::HeuristicDive | ( | BonminSetup * | setup | ) |
Constructor with setup.
Definition at line 36 of file BonHeuristicDive.cpp.
| Bonmin::HeuristicDive::HeuristicDive | ( | const HeuristicDive & | copy | ) |
Copy constructor.
Definition at line 46 of file BonHeuristicDive.cpp.
|
inline |
Destructor.
Definition at line 31 of file BonHeuristicDive.hpp.
| HeuristicDive & Bonmin::HeuristicDive::operator= | ( | const HeuristicDive & | rhs | ) |
Assignment operator.
Definition at line 55 of file BonHeuristicDive.cpp.
|
pure virtual |
Clone.
Implemented in Bonmin::HeuristicDiveVectorLength, and Bonmin::HeuristicDiveFractional.
|
inlinevirtual |
Resets stuff if model changes.
Definition at line 40 of file BonHeuristicDive.hpp.
|
inlinevirtual |
Change setup used for heuristic.
Reimplemented in Bonmin::HeuristicDiveVectorLength, and Bonmin::HeuristicDiveFractional.
Definition at line 45 of file BonHeuristicDive.hpp.
|
inline |
Set percentage of integer variables to fix at bounds.
Definition at line 51 of file BonHeuristicDive.hpp.
|
virtual |
Performs heuristic.
Definition at line 67 of file BonHeuristicDive.cpp.
|
pure virtual |
sets internal variables
Implemented in Bonmin::HeuristicDiveVectorLength, and Bonmin::HeuristicDiveFractional.
|
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.
|
protected |
Setup to use for local searches (will make copies).
Definition at line 71 of file BonHeuristicDive.hpp.
|
protected |
Percentage of integer variables to fix at bounds.
Definition at line 74 of file BonHeuristicDive.hpp.
|
private |
How often to do (code can change)
Definition at line 78 of file BonHeuristicDive.hpp.
1.8.5