#include <BonNlpHeuristic.hpp>
Public Member Functions | |
NlpSolveHeuristic () | |
Default constructor. | |
NlpSolveHeuristic (CbcModel &mip, OsiSolverInterface &nlp, bool cloneNlp=false, CouenneProblem *couenne=NULL) | |
Constructor with model and Ipopt problems. | |
NlpSolveHeuristic (const NlpSolveHeuristic &other) | |
Copy constructor. | |
virtual | ~NlpSolveHeuristic () |
Destructor. | |
virtual CbcHeuristic * | clone () const |
Clone. | |
NlpSolveHeuristic & | operator= (const NlpSolveHeuristic &rhs) |
Assignment operator. | |
void | setNlp (OsiSolverInterface &nlp, bool cloneNlp=true) |
Set the nlp solver. | |
void | setCouenneProblem (CouenneProblem *) |
set the couenne problem to use. | |
virtual void | resetModel (CbcModel *model) |
Does nothing. | |
virtual int | solution (double &objectiveValue, double *newSolution) |
Run heuristic, return 1 if a better solution than the one passed is found and 0 otherwise. | |
void | setMaxNlpInf (double value) |
set maxNlpInf. | |
void | setNumberSolvePerLevel (int value) |
set number of nlp's solved for each given level of the tree | |
Private Attributes | |
OsiSolverInterface * | nlp_ |
Pointer to an nlp solver interface. | |
bool | hasCloned_ |
is nlp_ cloned or just a pointer? | |
double | maxNlpInf_ |
maximum nlp infeasibility under which try to solve problem with Ipopt. | |
int | numberSolvePerLevel_ |
Number of nlp's solved for each given level of the tree. | |
CouenneProblem * | couenne_ |
Pointer to a couenne representation of the problem. |
Definition at line 22 of file BonNlpHeuristic.hpp.
Bonmin::NlpSolveHeuristic::NlpSolveHeuristic | ( | ) |
Default constructor.
Bonmin::NlpSolveHeuristic::NlpSolveHeuristic | ( | CbcModel & | mip, | |
OsiSolverInterface & | nlp, | |||
bool | cloneNlp = false , |
|||
CouenneProblem * | couenne = NULL | |||
) |
Constructor with model and Ipopt problems.
Bonmin::NlpSolveHeuristic::NlpSolveHeuristic | ( | const NlpSolveHeuristic & | other | ) |
Copy constructor.
virtual Bonmin::NlpSolveHeuristic::~NlpSolveHeuristic | ( | ) | [virtual] |
Destructor.
virtual CbcHeuristic* Bonmin::NlpSolveHeuristic::clone | ( | ) | const [virtual] |
Clone.
NlpSolveHeuristic& Bonmin::NlpSolveHeuristic::operator= | ( | const NlpSolveHeuristic & | rhs | ) |
Assignment operator.
void Bonmin::NlpSolveHeuristic::setNlp | ( | OsiSolverInterface & | nlp, | |
bool | cloneNlp = true | |||
) |
Set the nlp solver.
void Bonmin::NlpSolveHeuristic::setCouenneProblem | ( | CouenneProblem * | ) |
set the couenne problem to use.
virtual void Bonmin::NlpSolveHeuristic::resetModel | ( | CbcModel * | model | ) | [inline, virtual] |
virtual int Bonmin::NlpSolveHeuristic::solution | ( | double & | objectiveValue, | |
double * | newSolution | |||
) | [virtual] |
Run heuristic, return 1 if a better solution than the one passed is found and 0 otherwise.
objectiveValue Best known solution in input and value of solution found in output newSolution Solution found by heuristic.
void Bonmin::NlpSolveHeuristic::setMaxNlpInf | ( | double | value | ) | [inline] |
void Bonmin::NlpSolveHeuristic::setNumberSolvePerLevel | ( | int | value | ) | [inline] |
set number of nlp's solved for each given level of the tree
Definition at line 57 of file BonNlpHeuristic.hpp.
References numberSolvePerLevel_.
OsiSolverInterface* Bonmin::NlpSolveHeuristic::nlp_ [private] |
bool Bonmin::NlpSolveHeuristic::hasCloned_ [private] |
double Bonmin::NlpSolveHeuristic::maxNlpInf_ [private] |
maximum nlp infeasibility under which try to solve problem with Ipopt.
Definition at line 65 of file BonNlpHeuristic.hpp.
Referenced by setMaxNlpInf().
int Bonmin::NlpSolveHeuristic::numberSolvePerLevel_ [private] |
Number of nlp's solved for each given level of the tree.
Definition at line 67 of file BonNlpHeuristic.hpp.
Referenced by setNumberSolvePerLevel().
Pointer to a couenne representation of the problem.
Definition at line 69 of file BonNlpHeuristic.hpp.