Generate cuts for the nlp corresponding to continuous relaxation at a node. More...
#include <BonOaNlpOptim.hpp>
Public Member Functions | |
OaNlpOptim (OsiTMINLPInterface *si=NULL, int maxDepth=10, bool addOnlyViolated=false, bool globalCuts=true) | |
Default constructor. More... | |
OaNlpOptim (BabSetupBase &b) | |
Constructor with basic setup. More... | |
OaNlpOptim (const OaNlpOptim ©) | |
Copy constructor. More... | |
void | passInMessageHandler (const CoinMessageHandler *handler) |
virtual CglCutGenerator * | clone () const |
Abstract constructor. More... | |
virtual | ~OaNlpOptim () |
Desctructor. More... | |
void | assignInterface (OsiTMINLPInterface *si) |
Assign an OsiTMINLPInterface. More... | |
virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info) |
cut generation method More... | |
void | setMaxDepth (int value) |
void | setAddOnlyViolated (bool yesno) |
void | setGlobalCuts (bool yesno) |
int | getNSolve () |
void | setLogLevel (int value) |
set log level More... | |
Static Public Member Functions | |
static void | registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Register OaNlpOptim options. More... | |
Private Attributes | |
OsiTMINLPInterface * | nlp_ |
Pointer to the Ipopt interface. More... | |
int | maxDepth_ |
maximum depth at which generate cuts More... | |
int | nSolve_ |
Number of NLP resolution done. More... | |
CoinMessageHandler * | handler_ |
messages handler. More... | |
CoinMessages | messages_ |
handler More... | |
bool | addOnlyViolated_ |
Add only violated cuts? More... | |
bool | global_ |
Add cuts as global? More... | |
double | solves_per_level_ |
Average number of nodes per level in tree. More... | |
Generate cuts for the nlp corresponding to continuous relaxation at a node.
Definition at line 19 of file BonOaNlpOptim.hpp.
Bonmin::OaNlpOptim::OaNlpOptim | ( | OsiTMINLPInterface * | si = NULL , |
int | maxDepth = 10 , |
||
bool | addOnlyViolated = false , |
||
bool | globalCuts = true |
||
) |
Default constructor.
Definition at line 21 of file BonOaNlpOptim.cpp.
Bonmin::OaNlpOptim::OaNlpOptim | ( | BabSetupBase & | b | ) |
Constructor with basic setup.
Definition at line 36 of file BonOaNlpOptim.cpp.
|
inline |
Copy constructor.
Definition at line 30 of file BonOaNlpOptim.hpp.
|
inlinevirtual |
Desctructor.
Definition at line 56 of file BonOaNlpOptim.hpp.
|
inline |
Definition at line 44 of file BonOaNlpOptim.hpp.
|
inlinevirtual |
Abstract constructor.
Definition at line 50 of file BonOaNlpOptim.hpp.
void Bonmin::OaNlpOptim::assignInterface | ( | OsiTMINLPInterface * | si | ) |
Assign an OsiTMINLPInterface.
Definition at line 56 of file BonOaNlpOptim.cpp.
|
virtual |
cut generation method
Definition at line 63 of file BonOaNlpOptim.cpp.
Definition at line 70 of file BonOaNlpOptim.hpp.
|
inline |
Definition at line 74 of file BonOaNlpOptim.hpp.
|
inline |
Definition at line 78 of file BonOaNlpOptim.hpp.
|
inline |
Definition at line 82 of file BonOaNlpOptim.hpp.
set log level
Definition at line 87 of file BonOaNlpOptim.hpp.
|
static |
Register OaNlpOptim options.
Definition at line 176 of file BonOaNlpOptim.cpp.
|
private |
Pointer to the Ipopt interface.
Definition at line 97 of file BonOaNlpOptim.hpp.
|
private |
maximum depth at which generate cuts
Definition at line 100 of file BonOaNlpOptim.hpp.
|
mutableprivate |
Number of NLP resolution done.
Definition at line 103 of file BonOaNlpOptim.hpp.
|
private |
messages handler.
Definition at line 105 of file BonOaNlpOptim.hpp.
|
private |
handler
Definition at line 107 of file BonOaNlpOptim.hpp.
|
private |
Add only violated cuts?
Definition at line 109 of file BonOaNlpOptim.hpp.
|
private |
Add cuts as global?
Definition at line 111 of file BonOaNlpOptim.hpp.
|
private |
Average number of nodes per level in tree.
Definition at line 113 of file BonOaNlpOptim.hpp.