A transformer class to build outer approximations i.e. More...
#include <SepaTMINLP2OsiLP.hpp>
Public Member Functions | |
SepaTMINLP2OsiLP () | |
Default constructor. More... | |
SepaTMINLP2OsiLP (const SepaTMINLP2OsiLP &other) | |
Copy constructor. More... | |
TMINLP2OsiLP * | clone () const |
virtual copy constructor More... | |
SepaTMINLP2OsiLP & | operator= (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) |
![]() | |
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) |
TMINLP2OsiLP & | operator= (const TMINLP2OsiLP &rhs) |
Assignment operator. More... | |
~TMINLP2OsiLP () | |
Destructor. More... | |
Private Attributes | |
int | num_approx_ |
Additional Inherited Members | |
![]() | |
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 () |
![]() | |
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< int > | jCol_ |
Cache Jacobian matrix. More... | |
vector< int > | iRow_ |
Rows of jacobian. More... | |
vector< double > | value_ |
Values of jacobian. More... | |
vector < Ipopt::TNLP::LinearityType > | const_types_ |
Ipopt::SmartPtr < Bonmin::TMINLP2TNLP > | model_ |
![]() | |
static int | nTimesCalled |
Count the number of linear outer approximations taken. More... | |
A transformer class to build outer approximations i.e.
transfomrs nonlinear programs into linear programs.
Definition at line 23 of file SepaTMINLP2OsiLP.hpp.
|
inline |
Default constructor.
Definition at line 28 of file SepaTMINLP2OsiLP.hpp.
|
inline |
Copy constructor.
Definition at line 34 of file SepaTMINLP2OsiLP.hpp.
|
inline |
Destructor.
Definition at line 57 of file SepaTMINLP2OsiLP.hpp.
|
inlinevirtual |
virtual copy constructor
Implements Bonmin::TMINLP2OsiLP.
Definition at line 39 of file SepaTMINLP2OsiLP.hpp.
|
inline |
Assignment operator.
Definition at line 44 of file SepaTMINLP2OsiLP.hpp.
Definition at line 52 of file SepaTMINLP2OsiLP.hpp.
|
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.
|
virtual |
Get OAs of nonlinear constraints in x.
Implements Bonmin::TMINLP2OsiLP.
Definition at line 147 of file SepaTMINLP2OsiLP.cpp.
|
virtual |
Get OAs of nonlinear constraints in x.
Implements Bonmin::TMINLP2OsiLP.
Definition at line 349 of file SepaTMINLP2OsiLP.cpp.
|
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.
|
private |
Definition at line 75 of file SepaTMINLP2OsiLP.hpp.