Bonmin  1.7
Public Member Functions | Static Public Member Functions | Private Attributes
Bonmin::OaNlpOptim Class Reference

Generate cuts for the nlp corresponding to continuous relaxation at a node. More...

#include <BonOaNlpOptim.hpp>

List of all members.

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)
 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

OsiTMINLPInterfacenlp_
 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.

Detailed Description

Generate cuts for the nlp corresponding to continuous relaxation at a node.

Definition at line 19 of file BonOaNlpOptim.hpp.


Constructor & Destructor Documentation

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]

Desctructor.

Definition at line 56 of file BonOaNlpOptim.hpp.

References handler_.


Member Function Documentation

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]

Abstract constructor.

Definition at line 50 of file BonOaNlpOptim.hpp.

References OaNlpOptim().

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.


Member Data Documentation

Pointer to the Ipopt interface.

Definition at line 97 of file BonOaNlpOptim.hpp.

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]

handler

Definition at line 107 of file BonOaNlpOptim.hpp.

Referenced by OaNlpOptim().

Add only violated cuts?

Definition at line 109 of file BonOaNlpOptim.hpp.

Referenced by setAddOnlyViolated().

Add cuts as global?

Definition at line 111 of file BonOaNlpOptim.hpp.

Referenced by setGlobalCuts().

Average number of nodes per level in tree.

Definition at line 113 of file BonOaNlpOptim.hpp.


The documentation for this class was generated from the following file: