#include <BonHeuristicDiveVectorLength.hpp>
Public Member Functions | |
HeuristicDiveVectorLength () | |
Default Constructor. More... | |
HeuristicDiveVectorLength (BonminSetup *setup) | |
Constructor with setup. More... | |
HeuristicDiveVectorLength (const HeuristicDiveVectorLength ©) | |
Copy constructor. More... | |
~HeuristicDiveVectorLength () | |
Destructor. More... | |
HeuristicDiveVectorLength & | operator= (const HeuristicDiveVectorLength &rhs) |
Assignment operator. More... | |
virtual CbcHeuristic * | clone () const |
Clone. More... | |
virtual void | setSetup (BonminSetup *setup) |
Change setup used for heuristic. More... | |
virtual void | setInternalVariables (TMINLP2TNLP *minlp) |
sets internal variables More... | |
virtual void | selectVariableToBranch (TMINLP2TNLP *minlp, const vector< int > &integerColumns, const double *newSolution, int &bestColumn, int &bestRound) |
Selects the next variable to branch on. More... | |
void | Initialize (Ipopt::SmartPtr< Ipopt::OptionsList > options) |
Initiaize using passed options. More... | |
![]() | |
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 void | resetModel (CbcModel *model) |
Resets stuff if model changes. 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... | |
Static Public Member Functions | |
static void | registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Register the options common to all local search based heuristics. More... | |
Private Attributes | |
int * | columnLength_ |
the number of nonzero elements in each column More... | |
Additional Inherited Members | |
![]() | |
BonminSetup * | setup_ |
Setup to use for local searches (will make copies). More... | |
double | percentageToFix_ |
Percentage of integer variables to fix at bounds. More... | |
Definition at line 21 of file BonHeuristicDiveVectorLength.hpp.
Bonmin::HeuristicDiveVectorLength::HeuristicDiveVectorLength | ( | ) |
Default Constructor.
Definition at line 16 of file BonHeuristicDiveVectorLength.cpp.
Bonmin::HeuristicDiveVectorLength::HeuristicDiveVectorLength | ( | BonminSetup * | setup | ) |
Constructor with setup.
Definition at line 22 of file BonHeuristicDiveVectorLength.cpp.
Bonmin::HeuristicDiveVectorLength::HeuristicDiveVectorLength | ( | const HeuristicDiveVectorLength & | copy | ) |
Copy constructor.
Definition at line 30 of file BonHeuristicDiveVectorLength.cpp.
|
inline |
Destructor.
Definition at line 33 of file BonHeuristicDiveVectorLength.hpp.
HeuristicDiveVectorLength & Bonmin::HeuristicDiveVectorLength::operator= | ( | const HeuristicDiveVectorLength & | rhs | ) |
Assignment operator.
Definition at line 38 of file BonHeuristicDiveVectorLength.cpp.
|
virtual |
Clone.
Implements Bonmin::HeuristicDive.
Definition at line 49 of file BonHeuristicDiveVectorLength.cpp.
|
inlinevirtual |
Change setup used for heuristic.
Reimplemented from Bonmin::HeuristicDive.
Definition at line 45 of file BonHeuristicDiveVectorLength.hpp.
|
virtual |
sets internal variables
Implements Bonmin::HeuristicDive.
Definition at line 55 of file BonHeuristicDiveVectorLength.cpp.
|
virtual |
Selects the next variable to branch on.
If bestColumn = -1, it means that no variable was found
Implements Bonmin::HeuristicDive.
Definition at line 94 of file BonHeuristicDiveVectorLength.cpp.
|
static |
Register the options common to all local search based heuristics.
Definition at line 162 of file BonHeuristicDiveVectorLength.cpp.
void Bonmin::HeuristicDiveVectorLength::Initialize | ( | Ipopt::SmartPtr< Ipopt::OptionsList > | options | ) |
Initiaize using passed options.
Definition at line 175 of file BonHeuristicDiveVectorLength.cpp.
|
private |
the number of nonzero elements in each column
Definition at line 70 of file BonHeuristicDiveVectorLength.hpp.