Bonmin
1.7
|
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. | |
OaNlpOptim (BabSetupBase &b) | |
Constructor with basic setup. | |
OaNlpOptim (const OaNlpOptim ©) | |
Copy constructor. | |
void | passInMessageHandler (const CoinMessageHandler *handler) |
virtual CglCutGenerator * | clone () const |
Abstract constructor. | |
virtual | ~OaNlpOptim () |
Desctructor. | |
void | assignInterface (OsiTMINLPInterface *si) |
Assign an OsiTMINLPInterface. | |
virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info) |
cut generation method | |
void | setMaxDepth (int value) |
void | setAddOnlyViolated (bool yesno) |
void | setGlobalCuts (bool yesno) |
int | getNSolve () |
void | setLogLevel (int value) |
set log level | |
Static Public Member Functions | |
static void | registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Register OaNlpOptim options. | |
Private Attributes | |
OsiTMINLPInterface * | nlp_ |
Pointer to the Ipopt interface. | |
int | maxDepth_ |
maximum depth at which generate cuts | |
int | nSolve_ |
Number of NLP resolution done. | |
CoinMessageHandler * | handler_ |
messages handler. | |
CoinMessages | messages_ |
handler | |
bool | addOnlyViolated_ |
Add only violated cuts? | |
bool | global_ |
Add cuts as global? | |
double | solves_per_level_ |
Average number of nodes per level in tree. |
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.
Referenced by clone().
Bonmin::OaNlpOptim::OaNlpOptim | ( | BabSetupBase & | b | ) |
Constructor with basic setup.
Bonmin::OaNlpOptim::OaNlpOptim | ( | const OaNlpOptim & | copy | ) | [inline] |
Copy constructor.
Definition at line 30 of file BonOaNlpOptim.hpp.
References handler_, messages_, and setLogLevel().
virtual Bonmin::OaNlpOptim::~OaNlpOptim | ( | ) | [inline, virtual] |
void Bonmin::OaNlpOptim::passInMessageHandler | ( | const CoinMessageHandler * | handler | ) | [inline] |
Definition at line 44 of file BonOaNlpOptim.hpp.
References handler_.
virtual CglCutGenerator* Bonmin::OaNlpOptim::clone | ( | ) | const [inline, virtual] |
void Bonmin::OaNlpOptim::assignInterface | ( | OsiTMINLPInterface * | si | ) |
Assign an OsiTMINLPInterface.
virtual void Bonmin::OaNlpOptim::generateCuts | ( | const OsiSolverInterface & | si, |
OsiCuts & | cs, | ||
const CglTreeInfo | info | ||
) | [virtual] |
cut generation method
void Bonmin::OaNlpOptim::setMaxDepth | ( | int | value | ) | [inline] |
Definition at line 70 of file BonOaNlpOptim.hpp.
References maxDepth_.
void Bonmin::OaNlpOptim::setAddOnlyViolated | ( | bool | yesno | ) | [inline] |
Definition at line 74 of file BonOaNlpOptim.hpp.
References addOnlyViolated_.
void Bonmin::OaNlpOptim::setGlobalCuts | ( | bool | yesno | ) | [inline] |
Definition at line 78 of file BonOaNlpOptim.hpp.
References global_.
int Bonmin::OaNlpOptim::getNSolve | ( | ) | [inline] |
Definition at line 82 of file BonOaNlpOptim.hpp.
References nSolve_.
void Bonmin::OaNlpOptim::setLogLevel | ( | int | value | ) | [inline] |
set log level
Definition at line 87 of file BonOaNlpOptim.hpp.
References handler_.
Referenced by OaNlpOptim().
static void Bonmin::OaNlpOptim::registerOptions | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions | ) | [static] |
Register OaNlpOptim options.
OsiTMINLPInterface* Bonmin::OaNlpOptim::nlp_ [private] |
Pointer to the Ipopt interface.
Definition at line 97 of file BonOaNlpOptim.hpp.
int Bonmin::OaNlpOptim::maxDepth_ [private] |
maximum depth at which generate cuts
Definition at line 100 of file BonOaNlpOptim.hpp.
Referenced by setMaxDepth().
int Bonmin::OaNlpOptim::nSolve_ [mutable, private] |
Number of NLP resolution done.
Definition at line 103 of file BonOaNlpOptim.hpp.
Referenced by getNSolve().
CoinMessageHandler* Bonmin::OaNlpOptim::handler_ [private] |
messages handler.
Definition at line 105 of file BonOaNlpOptim.hpp.
Referenced by OaNlpOptim(), passInMessageHandler(), setLogLevel(), and ~OaNlpOptim().
CoinMessages Bonmin::OaNlpOptim::messages_ [private] |
bool Bonmin::OaNlpOptim::addOnlyViolated_ [private] |
Add only violated cuts?
Definition at line 109 of file BonOaNlpOptim.hpp.
Referenced by setAddOnlyViolated().
bool Bonmin::OaNlpOptim::global_ [private] |
Add cuts as global?
Definition at line 111 of file BonOaNlpOptim.hpp.
Referenced by setGlobalCuts().
double Bonmin::OaNlpOptim::solves_per_level_ [private] |
Average number of nodes per level in tree.
Definition at line 113 of file BonOaNlpOptim.hpp.