Couenne 0.5.8
|
A heuristic that stores the initial solution of the NLP. More...
#include <BonInitHeuristic.hpp>
Public Member Functions | |
InitHeuristic (double objValue, const double *sol, CouenneProblem &cp) | |
Constructor with model and Ipopt problems. | |
InitHeuristic (const InitHeuristic &other) | |
Copy constructor. | |
virtual | ~InitHeuristic () |
Destructor. | |
virtual CbcHeuristic * | clone () const |
Clone. | |
InitHeuristic & | operator= (const InitHeuristic &rhs) |
Assignment operator. | |
virtual void | resetModel (CbcModel *model) |
virtual int | solution (double &objectiveValue, double *newSolution) |
Run heuristic, return 1 if a better solution than the one passed is found and 0 otherwise. | |
![]() | |
CbcHeuristic () | |
CbcHeuristic (CbcModel &model) | |
CbcHeuristic (const CbcHeuristic &) | |
virtual | ~CbcHeuristic () |
CbcHeuristic & | operator= (const CbcHeuristic &rhs) |
virtual void | setModel (CbcModel *model) |
virtual int | solution2 (double &, double *, OsiCuts &) |
virtual void | validate () |
void | setWhen (int value) |
int | when () const |
void | setNumberNodes (int value) |
int | numberNodes () const |
void | setSwitches (int value) |
int | switches () const |
bool | exitNow (double bestObjective) const |
void | setFeasibilityPumpOptions (int value) |
int | feasibilityPumpOptions () const |
void | setModelOnly (CbcModel *model) |
void | setFractionSmall (double value) |
double | fractionSmall () const |
int | numberSolutionsFound () const |
void | incrementNumberSolutionsFound () |
int | smallBranchAndBound (OsiSolverInterface *solver, int numberNodes, double *newSolution, double &newSolutionValue, double cutoff, std::string name) const |
virtual void | generateCpp (FILE *) |
void | generateCpp (FILE *fp, const char *heuristic) |
virtual bool | canDealWithOdd () const |
const char * | heuristicName () const |
void | setHeuristicName (const char *name) |
void | setSeed (int value) |
int | getSeed () const |
void | setDecayFactor (double value) |
void | setInputSolution (const double *solution, double objValue) |
void | setWhereFrom (int value) |
int | whereFrom () const |
void | setShallowDepth (int value) |
void | setHowOftenShallow (int value) |
void | setMinDistanceToRun (int value) |
virtual bool | shouldHeurRun (int whereFrom) |
bool | shouldHeurRun_randomChoice () |
void | debugNodes () |
void | printDistanceToNodes () |
int | numRuns () const |
int | numCouldRun () const |
double | trueObjValue (double value) const |
bool | isHeuristicInteger (const OsiSolverInterface *solver, int iColumn) |
OsiSolverInterface * | cloneBut (int type) |
Additional Inherited Members | |
![]() | |
CbcModel * | model_ |
int | when_ |
int | numberNodes_ |
int | feasibilityPumpOptions_ |
double | fractionSmall_ |
CoinThreadRandom | randomNumberGenerator_ |
std::string | heuristicName_ |
int | howOften_ |
double | decayFactor_ |
int | switches_ |
int | whereFrom_ |
int | shallowDepth_ |
int | howOftenShallow_ |
int | numInvocationsInShallow_ |
int | numInvocationsInDeep_ |
int | lastRunDeep_ |
int | numRuns_ |
int | minDistanceToRun_ |
CbcHeuristicNodeList | runNodes_ |
int | numCouldRun_ |
int | numberSolutionsFound_ |
int | numberNodesDone_ |
double * | inputSolution_ |
A heuristic that stores the initial solution of the NLP.
This is computed before Cbc is started, and in this way we can tell Cbc about this.
Definition at line 24 of file BonInitHeuristic.hpp.
Couenne::InitHeuristic::InitHeuristic | ( | double | objValue, |
const double * | sol, | ||
CouenneProblem & | cp ) |
Constructor with model and Ipopt problems.
Couenne::InitHeuristic::InitHeuristic | ( | const InitHeuristic & | other | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Clone.
Implements CbcHeuristic.
InitHeuristic & Couenne::InitHeuristic::operator= | ( | const InitHeuristic & | rhs | ) |
Assignment operator.
|
inlinevirtual |
Implements CbcHeuristic.
Definition at line 42 of file BonInitHeuristic.hpp.
|
virtual |
Run heuristic, return 1 if a better solution than the one passed is found and 0 otherwise.
\argument objectiveValue Best known solution in input and value of solution found in output \argument newSolution Solution found by heuristic.
Implements CbcHeuristic.