#include <BonDummyHeuristic.hpp>
Inheritance diagram for Bonmin::DummyHeuristic:
Public Member Functions | |
DummyHeuristic (OsiTMINLPInterface *si=NULL) | |
Default constructor. | |
DummyHeuristic (CbcModel &model, OsiTMINLPInterface *si=NULL) | |
Usefull constructor. | |
DummyHeuristic (const DummyHeuristic ©) | |
Copy constructor. | |
void | setNlp (OsiTMINLPInterface *si) |
Set nlp_. | |
virtual int | solution (double &solutionValue, double *betterSolution) |
heuristic method | |
virtual int | solution (double &solutionValue, double *betterSolution, OsiCuts &cs) |
returns 0 if no solution, 1 if valid solution, -1 if just returning an estimate of best possible solution with better objective value than one passed in Sets solution values if good, sets objective value (only if nonzero code) This is called at same time as cut generators - so can add cuts Default is do nothing | |
virtual CbcHeuristic * | clone () const |
Clone. | |
virtual void | resetModel (CbcModel *) |
Resets stuff if model changes. | |
Private Attributes | |
OsiTMINLPInterface * | nlp_ |
Pointer to the Ipopt interface. | |
bool | knowsSolution |
Do I have a solution? |
Definition at line 17 of file BonDummyHeuristic.hpp.
Bonmin::DummyHeuristic::DummyHeuristic | ( | OsiTMINLPInterface * | si = NULL |
) |
Bonmin::DummyHeuristic::DummyHeuristic | ( | CbcModel & | model, | |
OsiTMINLPInterface * | si = NULL | |||
) |
Usefull constructor.
Bonmin::DummyHeuristic::DummyHeuristic | ( | const DummyHeuristic & | copy | ) | [inline] |
void Bonmin::DummyHeuristic::setNlp | ( | OsiTMINLPInterface * | si | ) |
Set nlp_.
virtual int Bonmin::DummyHeuristic::solution | ( | double & | solutionValue, | |
double * | betterSolution | |||
) | [virtual] |
virtual int Bonmin::DummyHeuristic::solution | ( | double & | solutionValue, | |
double * | betterSolution, | |||
OsiCuts & | cs | |||
) | [inline, virtual] |
returns 0 if no solution, 1 if valid solution, -1 if just returning an estimate of best possible solution with better objective value than one passed in Sets solution values if good, sets objective value (only if nonzero code) This is called at same time as cut generators - so can add cuts Default is do nothing
Reimplemented from CbcHeuristic.
Definition at line 34 of file BonDummyHeuristic.hpp.
References solution().
virtual CbcHeuristic* Bonmin::DummyHeuristic::clone | ( | ) | const [inline, virtual] |
Clone.
Implements CbcHeuristic.
Definition at line 38 of file BonDummyHeuristic.hpp.
References DummyHeuristic().
virtual void Bonmin::DummyHeuristic::resetModel | ( | CbcModel * | ) | [inline, virtual] |
Resets stuff if model changes.
Implements CbcHeuristic.
Definition at line 42 of file BonDummyHeuristic.hpp.
OsiTMINLPInterface* Bonmin::DummyHeuristic::nlp_ [private] |
bool Bonmin::DummyHeuristic::knowsSolution [private] |