Public Member Functions | Private Attributes | List of all members
Sepa::SepaTMINLP2OsiLP Class Reference

A transformer class to build outer approximations i.e. More...

#include <SepaTMINLP2OsiLP.hpp>

Inheritance diagram for Sepa::SepaTMINLP2OsiLP:
Inheritance graph
[legend]
Collaboration diagram for Sepa::SepaTMINLP2OsiLP:
Collaboration graph
[legend]

Public Member Functions

 SepaTMINLP2OsiLP ()
 Default constructor. More...
 
 SepaTMINLP2OsiLP (const SepaTMINLP2OsiLP &other)
 Copy constructor. More...
 
TMINLP2OsiLPclone () const
 virtual copy constructor More...
 
SepaTMINLP2OsiLPoperator= (const SepaTMINLP2OsiLP &rhs)
 Assignment operator. More...
 
void set_num_approx (int v)
 
 ~SepaTMINLP2OsiLP ()
 Destructor. More...
 
virtual void extract (OsiSolverInterface *si, const double *x, bool getObj)
 Build the Outer approximation of model_ in x and put it in si. More...
 
virtual void get_oas (OsiCuts &cs, const double *x, bool getObj, bool global) const
 Get OAs of nonlinear constraints in x. More...
 
virtual void get_refined_oa (OsiCuts &cs) const
 Get OAs of nonlinear constraints in x. More...
 
virtual void get_oa (int iRow, OsiCuts &cs, const double *x, bool getObj, bool global) const
 Get OA of one constraints in x. More...
 
void add_outer_description (OsiSolverInterface &si)
 
void add_outer_description_function_values (OsiSolverInterface &si)
 
- Public Member Functions inherited from Bonmin::TMINLP2OsiLP
 TMINLP2OsiLP ()
 Default constructor. More...
 
 TMINLP2OsiLP (const TMINLP2OsiLP &other)
 Copy constructor. More...
 
void set_tols (double tiny, double very_tiny, double rhs_relax, double infty)
 
void set_model (Bonmin::TMINLP2TNLP *model)
 
TMINLP2OsiLPoperator= (const TMINLP2OsiLP &rhs)
 Assignment operator. More...
 
 ~TMINLP2OsiLP ()
 Destructor. More...
 

Private Attributes

int num_approx_
 

Additional Inherited Members

- Protected Member Functions inherited from Bonmin::TMINLP2OsiLP
bool cleanNnz (double &value, double colLower, double colUpper, double rowLower, double rowUpper, double colsol, double &lb, double &ub, double tiny, double veryTiny) const
 Facilitator to clean up coefficient. More...
 
void initialize_jac_storage ()
 
- Protected Attributes inherited from Bonmin::TMINLP2OsiLP
double tiny_
 If constraint coefficient is below this, we try to remove it. More...
 
double very_tiny_
 If constraint coefficient is below this, we neglect it. More...
 
double rhs_relax_
 Amount by which to relax OA constraints RHSes. More...
 
double infty_
 infinity. More...
 
vector< intjCol_
 Cache Jacobian matrix. More...
 
vector< intiRow_
 Rows of jacobian. More...
 
vector< double > value_
 Values of jacobian. More...
 
vector
< Ipopt::TNLP::LinearityType > 
const_types_
 
Ipopt::SmartPtr
< Bonmin::TMINLP2TNLP
model_
 
- Static Protected Attributes inherited from Bonmin::TMINLP2OsiLP
static int nTimesCalled
 Count the number of linear outer approximations taken. More...
 

Detailed Description

A transformer class to build outer approximations i.e.

transfomrs nonlinear programs into linear programs.

Definition at line 23 of file SepaTMINLP2OsiLP.hpp.

Constructor & Destructor Documentation

Sepa::SepaTMINLP2OsiLP::SepaTMINLP2OsiLP ( )
inline

Default constructor.

Definition at line 28 of file SepaTMINLP2OsiLP.hpp.

Sepa::SepaTMINLP2OsiLP::SepaTMINLP2OsiLP ( const SepaTMINLP2OsiLP other)
inline

Copy constructor.

Definition at line 34 of file SepaTMINLP2OsiLP.hpp.

Sepa::SepaTMINLP2OsiLP::~SepaTMINLP2OsiLP ( )
inline

Destructor.

Definition at line 57 of file SepaTMINLP2OsiLP.hpp.

Member Function Documentation

TMINLP2OsiLP* Sepa::SepaTMINLP2OsiLP::clone ( ) const
inlinevirtual

virtual copy constructor

Implements Bonmin::TMINLP2OsiLP.

Definition at line 39 of file SepaTMINLP2OsiLP.hpp.

SepaTMINLP2OsiLP& Sepa::SepaTMINLP2OsiLP::operator= ( const SepaTMINLP2OsiLP rhs)
inline

Assignment operator.

Definition at line 44 of file SepaTMINLP2OsiLP.hpp.

void Sepa::SepaTMINLP2OsiLP::set_num_approx ( int  v)
inline

Definition at line 52 of file SepaTMINLP2OsiLP.hpp.

void Sepa::SepaTMINLP2OsiLP::extract ( OsiSolverInterface *  si,
const double *  x,
bool  getObj 
)
virtual

Build the Outer approximation of model_ in x and put it in si.

Implements Bonmin::TMINLP2OsiLP.

Definition at line 24 of file SepaTMINLP2OsiLP.cpp.

void Sepa::SepaTMINLP2OsiLP::get_oas ( OsiCuts &  cs,
const double *  x,
bool  getObj,
bool  global 
) const
virtual

Get OAs of nonlinear constraints in x.

Implements Bonmin::TMINLP2OsiLP.

Definition at line 147 of file SepaTMINLP2OsiLP.cpp.

void Sepa::SepaTMINLP2OsiLP::get_refined_oa ( OsiCuts &  cs) const
virtual

Get OAs of nonlinear constraints in x.

Implements Bonmin::TMINLP2OsiLP.

Definition at line 349 of file SepaTMINLP2OsiLP.cpp.

void Sepa::SepaTMINLP2OsiLP::get_oa ( int  iRow,
OsiCuts &  cs,
const double *  x,
bool  getObj,
bool  global 
) const
virtual

Get OA of one constraints in x.

Definition at line 259 of file SepaTMINLP2OsiLP.cpp.

void Sepa::SepaTMINLP2OsiLP::add_outer_description ( OsiSolverInterface &  si)
void Sepa::SepaTMINLP2OsiLP::add_outer_description_function_values ( OsiSolverInterface &  si)

Definition at line 417 of file SepaTMINLP2OsiLP.cpp.

Member Data Documentation

int Sepa::SepaTMINLP2OsiLP::num_approx_
private

Definition at line 75 of file SepaTMINLP2OsiLP.hpp.


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