|
Couenne
0.2
|
#include <BonNlpHeuristic.hpp>
Public Member Functions | |
| NlpSolveHeuristic () | |
| Default constructor. More... | |
| NlpSolveHeuristic (CbcModel &mip, Bonmin::OsiTMINLPInterface &nlp, bool cloneNlp=false, CouenneProblem *couenne=NULL) | |
| Constructor with model and Ipopt problems. More... | |
| NlpSolveHeuristic (const NlpSolveHeuristic &other) | |
| Copy constructor. More... | |
| virtual | ~NlpSolveHeuristic () |
| Destructor. More... | |
| virtual CbcHeuristic * | clone () const |
| Clone. More... | |
| NlpSolveHeuristic & | operator= (const NlpSolveHeuristic &rhs) |
| Assignment operator. More... | |
| void | setNlp (Bonmin::OsiTMINLPInterface &nlp, bool cloneNlp=true) |
| Set the nlp solver. More... | |
| void | setCouenneProblem (CouenneProblem *) |
| set the couenne problem to use. More... | |
| virtual void | resetModel (CbcModel *model) |
| Does nothing. More... | |
| virtual int | solution (double &objectiveValue, double *newSolution) |
| Run heuristic, return 1 if a better solution than the one passed is found and 0 otherwise. More... | |
| void | setMaxNlpInf (double value) |
| set maxNlpInf. More... | |
| void | setNumberSolvePerLevel (int value) |
| set number of nlp's solved for each given level of the tree More... | |
Static Public Member Functions | |
| static void | registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions >) |
| initialize options More... | |
Private Attributes | |
| Bonmin::OsiTMINLPInterface * | nlp_ |
| Pointer to an nlp solver interface. More... | |
| bool | hasCloned_ |
| is nlp_ cloned or just a pointer? More... | |
| double | maxNlpInf_ |
| maximum nlp infeasibility under which try to solve problem with Ipopt. More... | |
| int | numberSolvePerLevel_ |
| Number of nlp's solved for each given level of the tree. More... | |
| CouenneProblem * | couenne_ |
| Pointer to a couenne representation of the problem. More... | |
Definition at line 28 of file BonNlpHeuristic.hpp.
| Couenne::NlpSolveHeuristic::NlpSolveHeuristic | ( | ) |
Default constructor.
| Couenne::NlpSolveHeuristic::NlpSolveHeuristic | ( | CbcModel & | mip, |
| Bonmin::OsiTMINLPInterface & | nlp, | ||
| bool | cloneNlp = false, |
||
| CouenneProblem * | couenne = NULL |
||
| ) |
Constructor with model and Ipopt problems.
| Couenne::NlpSolveHeuristic::NlpSolveHeuristic | ( | const NlpSolveHeuristic & | other | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Clone.
| NlpSolveHeuristic& Couenne::NlpSolveHeuristic::operator= | ( | const NlpSolveHeuristic & | rhs | ) |
Assignment operator.
| void Couenne::NlpSolveHeuristic::setNlp | ( | Bonmin::OsiTMINLPInterface & | nlp, |
| bool | cloneNlp = true |
||
| ) |
Set the nlp solver.
| void Couenne::NlpSolveHeuristic::setCouenneProblem | ( | CouenneProblem * | ) |
set the couenne problem to use.
|
inlinevirtual |
Does nothing.
Definition at line 53 of file BonNlpHeuristic.hpp.
|
virtual |
|
inline |
|
inline |
set number of nlp's solved for each given level of the tree
Definition at line 64 of file BonNlpHeuristic.hpp.
References numberSolvePerLevel_.
|
static |
initialize options
|
private |
Pointer to an nlp solver interface.
Definition at line 72 of file BonNlpHeuristic.hpp.
|
private |
is nlp_ cloned or just a pointer?
Definition at line 74 of file BonNlpHeuristic.hpp.
|
private |
maximum nlp infeasibility under which try to solve problem with Ipopt.
Definition at line 76 of file BonNlpHeuristic.hpp.
Referenced by setMaxNlpInf().
|
private |
Number of nlp's solved for each given level of the tree.
Definition at line 78 of file BonNlpHeuristic.hpp.
Referenced by setNumberSolvePerLevel().
|
private |
Pointer to a couenne representation of the problem.
Definition at line 80 of file BonNlpHeuristic.hpp.
1.8.5