Bonmin::OuterApprox Class Reference

A class to build outer approximations. More...

#include <BonOuterApprox.hpp>

List of all members.

Public Member Functions

 OuterApprox ()
 Default constructor.
 OuterApprox (const OuterApprox &other)
 Copy constructor.
OuterApproxoperator= (const OuterApprox &rhs)
 Assignment operator.
 ~OuterApprox ()
 Destructor.
void initialize (Bonmin::BabSetupBase &b)
 Initialize using options.
void extractLinearRelaxation (Bonmin::OsiTMINLPInterface &minlp, OsiSolverInterface *si, const double *x, bool getObj)
 Build the Outer approximation in minlp and put it in si.
void operator() (Bonmin::OsiTMINLPInterface &minlp, OsiSolverInterface *si, const double *x, bool getObj)
 Operator() calls extractLinearRelaxation.

Private Member Functions

bool cleanNnz (double &value, double colLower, double colUpper, double rowLower, double rowUpper, double colsol, double &lb, double &ub, double tiny, double veryTiny)
 Facilitator to clean up coefficient.

Private Attributes

double tiny_
 If constraint coefficient is below this, we try to remove it.
double veryTiny_
 If constraint coefficient is below this, we neglect it.

Static Private Attributes

static int nTimesCalled = 0
 Count the number of linear outer approximations taken.

Detailed Description

A class to build outer approximations.

Definition at line 21 of file BonOuterApprox.hpp.


Constructor & Destructor Documentation

Bonmin::OuterApprox::OuterApprox (  )  [inline]

Default constructor.

Definition at line 26 of file BonOuterApprox.hpp.

Bonmin::OuterApprox::OuterApprox ( const OuterApprox other  )  [inline]

Copy constructor.

Definition at line 32 of file BonOuterApprox.hpp.

Bonmin::OuterApprox::~OuterApprox (  )  [inline]

Destructor.

Definition at line 47 of file BonOuterApprox.hpp.


Member Function Documentation

OuterApprox& Bonmin::OuterApprox::operator= ( const OuterApprox rhs  )  [inline]

Assignment operator.

Definition at line 39 of file BonOuterApprox.hpp.

void Bonmin::OuterApprox::initialize ( Bonmin::BabSetupBase b  ) 

Initialize using options.

Definition at line 20 of file BonOuterApprox.cpp.

void Bonmin::OuterApprox::extractLinearRelaxation ( Bonmin::OsiTMINLPInterface minlp,
OsiSolverInterface *  si,
const double *  x,
bool  getObj 
)

Build the Outer approximation in minlp and put it in si.

Definition at line 25 of file BonOuterApprox.cpp.

void Bonmin::OuterApprox::operator() ( Bonmin::OsiTMINLPInterface minlp,
OsiSolverInterface *  si,
const double *  x,
bool  getObj 
) [inline]

Operator() calls extractLinearRelaxation.

Definition at line 57 of file BonOuterApprox.hpp.

bool Bonmin::OuterApprox::cleanNnz ( double &  value,
double  colLower,
double  colUpper,
double  rowLower,
double  rowUpper,
double  colsol,
double &  lb,
double &  ub,
double  tiny,
double  veryTiny 
) [inline, private]

Facilitator to clean up coefficient.

Definition at line 78 of file BonOuterApprox.hpp.


Member Data Documentation

double Bonmin::OuterApprox::tiny_ [private]

If constraint coefficient is below this, we try to remove it.

Definition at line 68 of file BonOuterApprox.hpp.

If constraint coefficient is below this, we neglect it.

Definition at line 70 of file BonOuterApprox.hpp.

int Bonmin::OuterApprox::nTimesCalled = 0 [static, private]

Count the number of linear outer approximations taken.

Definition at line 72 of file BonOuterApprox.hpp.


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

Generated on 16 Feb 2012 by  doxygen 1.6.1