Bonmin  1.7
Public Member Functions | Private Attributes
Bonmin::OaDecompositionBase::solverManip Class Reference

Small class to manipulatee various things in an OsiSolverInterface and restore them. More...

#include <BonOaDecBase.hpp>

List of all members.

Public Member Functions

 solverManip (OsiSolverInterface *si, bool saveNumRows=true, bool saveBasis=true, bool saveBounds=false, bool saveCutoff=false, bool resolve=true)
 Constructor.
 solverManip (const OsiSolverInterface &si)
 Constructor which clone an other interface.
 ~solverManip ()
 Destructor.
void restore ()
 Restore solver.
OsiSolverInterface * si ()
 Get pointer to solver interface.
void setObjects (OsiObject **objects, int nObjects)
 Set objects.

Private Attributes

OsiSolverInterface * si_
 Interface saved.
int initialNumberRows_
 Initial number of rows (-1 if don't save).
double * colLower_
 Initial lower bounds.
double * colUpper_
 Initial Upper bounds.
CoinWarmStart * warm_
 Inital basis.
double cutoff_
 Initial cutoff.
bool deleteSolver_
 delete si_ ?
OsiObject ** objects_
 Some objects the feasiblitiy of which to verify.
int nObjects_
 Number of objects.*/.

Cached info from solver interface.

int numcols_
 Number of columns.
int numrows_
 Number of rows.
const double * siColLower_
 Lower bounds on variables.
const double * siColUpper_
 Upper bounds on variables.
void getCached ()
 Number of columns.

Detailed Description

Small class to manipulatee various things in an OsiSolverInterface and restore them.

The OsiSolverInterface manipulated may already exist or may be cloned from another one.

Definition at line 34 of file BonOaDecBase.hpp.


Constructor & Destructor Documentation

Bonmin::OaDecompositionBase::solverManip::solverManip ( OsiSolverInterface *  si,
bool  saveNumRows = true,
bool  saveBasis = true,
bool  saveBounds = false,
bool  saveCutoff = false,
bool  resolve = true 
)

Constructor.

Bonmin::OaDecompositionBase::solverManip::solverManip ( const OsiSolverInterface &  si)

Constructor which clone an other interface.

Bonmin::OaDecompositionBase::solverManip::~solverManip ( )

Destructor.


Member Function Documentation

void Bonmin::OaDecompositionBase::solverManip::restore ( )

Restore solver.

OsiSolverInterface* Bonmin::OaDecompositionBase::solverManip::si ( ) [inline]

Get pointer to solver interface.

Definition at line 50 of file BonOaDecBase.hpp.

References si_.

void Bonmin::OaDecompositionBase::solverManip::setObjects ( OsiObject **  objects,
int  nObjects 
) [inline]

Set objects.

Definition at line 56 of file BonOaDecBase.hpp.

References nObjects_, and objects_.

void Bonmin::OaDecompositionBase::solverManip::getCached ( ) [private]

Number of columns.


Member Data Documentation

OsiSolverInterface* Bonmin::OaDecompositionBase::solverManip::si_ [private]

Interface saved.

Definition at line 64 of file BonOaDecBase.hpp.

Referenced by si().

Initial number of rows (-1 if don't save).

Definition at line 66 of file BonOaDecBase.hpp.

Initial lower bounds.

Definition at line 69 of file BonOaDecBase.hpp.

Initial Upper bounds.

Definition at line 72 of file BonOaDecBase.hpp.

Inital basis.

Definition at line 75 of file BonOaDecBase.hpp.

Initial cutoff.

Definition at line 78 of file BonOaDecBase.hpp.

delete si_ ?

Definition at line 81 of file BonOaDecBase.hpp.

Some objects the feasiblitiy of which to verify.

Definition at line 84 of file BonOaDecBase.hpp.

Referenced by setObjects().

Number of objects.*/.

Definition at line 86 of file BonOaDecBase.hpp.

Referenced by setObjects().

Number of columns.

Definition at line 90 of file BonOaDecBase.hpp.

Number of rows.

Definition at line 92 of file BonOaDecBase.hpp.

Lower bounds on variables.

Definition at line 94 of file BonOaDecBase.hpp.

Upper bounds on variables.

Definition at line 96 of file BonOaDecBase.hpp.


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