#include <IpCbcDummyHeuristic.hpp>
Inheritance diagram for IpCbcDummyHeuristic:
Public Member Functions | |
IpCbcDummyHeuristic (IpoptInterface *si=NULL) | |
Default constructor. | |
IpCbcDummyHeuristic (CbcModel &model, IpoptInterface *si=NULL) | |
Usefull constructor. | |
IpCbcDummyHeuristic (const IpCbcDummyHeuristic ©) | |
Copy constructor. | |
void | assignInterface (IpoptInterface *si) |
Assign an IpoptInterface. | |
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 | |
IpoptInterface * | nlp_ |
Pointer to the Ipopt interface. | |
bool | knowsSolution |
Do I have a solution? |
Definition at line 16 of file IpCbcDummyHeuristic.hpp.
IpCbcDummyHeuristic::IpCbcDummyHeuristic | ( | IpoptInterface * | si = NULL |
) |
IpCbcDummyHeuristic::IpCbcDummyHeuristic | ( | CbcModel & | model, | |
IpoptInterface * | si = NULL | |||
) |
Usefull constructor.
IpCbcDummyHeuristic::IpCbcDummyHeuristic | ( | const IpCbcDummyHeuristic & | copy | ) | [inline] |
void IpCbcDummyHeuristic::assignInterface | ( | IpoptInterface * | si | ) |
Assign an IpoptInterface.
virtual int IpCbcDummyHeuristic::solution | ( | double & | solutionValue, | |
double * | betterSolution | |||
) | [virtual] |
virtual int IpCbcDummyHeuristic::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 33 of file IpCbcDummyHeuristic.hpp.
References solution().
virtual CbcHeuristic* IpCbcDummyHeuristic::clone | ( | ) | const [inline, virtual] |
Clone.
Implements CbcHeuristic.
Definition at line 37 of file IpCbcDummyHeuristic.hpp.
References IpCbcDummyHeuristic().
virtual void IpCbcDummyHeuristic::resetModel | ( | CbcModel * | ) | [inline, virtual] |
Resets stuff if model changes.
Implements CbcHeuristic.
Definition at line 41 of file IpCbcDummyHeuristic.hpp.
IpoptInterface* IpCbcDummyHeuristic::nlp_ [private] |
bool IpCbcDummyHeuristic::knowsSolution [private] |