A transformer class to build outer approximations i.e. More...
#include <SepaTMINLP2OsiLP.hpp>
Public Member Functions | |
SepaTMINLP2OsiLP () | |
Default constructor. | |
SepaTMINLP2OsiLP (const SepaTMINLP2OsiLP &other) | |
Copy constructor. | |
TMINLP2OsiLP * | clone () const |
virtual copy constructor | |
SepaTMINLP2OsiLP & | operator= (const SepaTMINLP2OsiLP &rhs) |
Assignment operator. | |
void | set_num_approx (int v) |
~SepaTMINLP2OsiLP () | |
Destructor. | |
virtual void | extract (OsiSolverInterface *si, const double *x, bool getObj) |
Build the Outer approximation of model_ in x and put it in si. | |
virtual void | get_oas (OsiCuts &cs, const double *x, bool getObj, bool global) const |
Get OAs of nonlinear constraints in x. | |
virtual void | get_refined_oa (OsiCuts &cs) const |
Get OAs of nonlinear constraints in x. | |
virtual void | get_oa (int iRow, OsiCuts &cs, const double *x, bool getObj, bool global) const |
Get OA of one constraints in x. | |
void | add_outer_description (OsiSolverInterface &si) |
void | add_outer_description_function_values (OsiSolverInterface &si) |
Private Attributes | |
int | num_approx_ |
A transformer class to build outer approximations i.e.
transfomrs nonlinear programs into linear programs.
Definition at line 23 of file SepaTMINLP2OsiLP.hpp.
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.
TMINLP2OsiLP* Sepa::SepaTMINLP2OsiLP::clone | ( | ) | const [inline, virtual] |
virtual copy constructor
Implements Bonmin::TMINLP2OsiLP.
Definition at line 39 of file SepaTMINLP2OsiLP.hpp.
SepaTMINLP2OsiLP& Sepa::SepaTMINLP2OsiLP::operator= | ( | const SepaTMINLP2OsiLP & | rhs | ) | [inline] |
Assignment operator.
Reimplemented from Bonmin::TMINLP2OsiLP.
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.
int Sepa::SepaTMINLP2OsiLP::num_approx_ [private] |
Definition at line 75 of file SepaTMINLP2OsiLP.hpp.