|
Bonmin 1.8.9
|
#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. | |
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.
|
inline |
Destructor.
Definition at line 31 of file BonHeuristicDive.hpp.
| HeuristicDive & Bonmin::HeuristicDive::operator= | ( | const HeuristicDive & | rhs | ) |
Assignment operator.
|
pure virtual |
Clone.
Implemented in Bonmin::HeuristicDiveFractional, and Bonmin::HeuristicDiveVectorLength.
|
inlinevirtual |
Resets stuff if model changes.
Definition at line 40 of file BonHeuristicDive.hpp.
|
inlinevirtual |
Change setup used for heuristic.
Reimplemented in Bonmin::HeuristicDiveFractional, and Bonmin::HeuristicDiveVectorLength.
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.
|
pure virtual |
sets internal variables
Implemented in Bonmin::HeuristicDiveFractional, and Bonmin::HeuristicDiveVectorLength.
|
pure virtual |
Selects the next variable to branch on.
If bestColumn = -1, it means that no variable was found
Implemented in Bonmin::HeuristicDiveFractional, and Bonmin::HeuristicDiveVectorLength.
|
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.