#include <BonOaDecBase.hpp>
Cached info from solver interface. | |
| void | getCached () |
| int | numcols_ |
| Number of columns. | |
| int | numrows_ |
| Number of rows. | |
| const double * | siColLower_ |
| Lower bounds on variables. | |
| const double * | siColUpper_ |
| Upper bounds on variables. | |
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. | |
| void | cloneOther (const OsiSolverInterface &si) |
| Clone the state of another solver (bounds, cutoff, basis). | |
| 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.*/. | |
The OsiSolverInterface manipulated may already exist or may be cloned from another one.
Definition at line 36 of file BonOaDecBase.hpp.
| Bonmin::OaDecompositionBase::solverManip::solverManip | ( | OsiSolverInterface * | si, | |
| bool | saveNumRows = true, |
|||
| bool | saveBasis = true, |
|||
| bool | saveBounds = false, |
|||
| bool | saveCutoff = false, |
|||
| bool | resolve = true | |||
| ) |
| Bonmin::OaDecompositionBase::solverManip::solverManip | ( | const OsiSolverInterface & | si | ) |
| Bonmin::OaDecompositionBase::solverManip::~solverManip | ( | ) |
Destructor.
Definition at line 207 of file BonOaDecBase.cpp.
References colLower_, colUpper_, deleteSolver_, si_, and warm_.
| void Bonmin::OaDecompositionBase::solverManip::restore | ( | ) |
Restore solver.
Definition at line 216 of file BonOaDecBase.cpp.
References colLower_, colUpper_, cutoff_, getCached(), initialNumberRows_, numrows_, si_, and warm_.
Referenced by Bonmin::OaDecompositionBase::generateCuts().
| void Bonmin::OaDecompositionBase::solverManip::cloneOther | ( | const OsiSolverInterface & | si | ) |
Clone the state of another solver (bounds, cutoff, basis).
Definition at line 264 of file BonOaDecBase.cpp.
References e, k, numcols_, numrows_, and si_.
Referenced by Bonmin::OaDecompositionBase::generateCuts().
| OsiSolverInterface* Bonmin::OaDecompositionBase::solverManip::si | ( | ) | [inline] |
Get pointer to solver interface.
Definition at line 58 of file BonOaDecBase.hpp.
References si_.
Referenced by Bonmin::OaDecompositionBase::generateCuts().
| void Bonmin::OaDecompositionBase::solverManip::setObjects | ( | OsiObject ** | objects, | |
| int | nObjects | |||
| ) | [inline] |
Set objects.
Definition at line 64 of file BonOaDecBase.hpp.
References nObjects_, and objects_.
Referenced by Bonmin::OaDecompositionBase::generateCuts().
| void Bonmin::OaDecompositionBase::solverManip::getCached | ( | ) | [private] |
Definition at line 470 of file BonOaDecBase.cpp.
References numcols_, numrows_, si_, siColLower_, and siColUpper_.
Referenced by restore().
OsiSolverInterface* Bonmin::OaDecompositionBase::solverManip::si_ [private] |
Interface saved.
Definition at line 72 of file BonOaDecBase.hpp.
Referenced by cloneOther(), getCached(), restore(), si(), and ~solverManip().
Initial number of rows (-1 if don't save).
Definition at line 74 of file BonOaDecBase.hpp.
Referenced by restore().
double* Bonmin::OaDecompositionBase::solverManip::colLower_ [private] |
Initial lower bounds.
Definition at line 77 of file BonOaDecBase.hpp.
Referenced by restore(), and ~solverManip().
double* Bonmin::OaDecompositionBase::solverManip::colUpper_ [private] |
Initial Upper bounds.
Definition at line 80 of file BonOaDecBase.hpp.
Referenced by restore(), and ~solverManip().
CoinWarmStart* Bonmin::OaDecompositionBase::solverManip::warm_ [private] |
Inital basis.
Definition at line 83 of file BonOaDecBase.hpp.
Referenced by restore(), and ~solverManip().
double Bonmin::OaDecompositionBase::solverManip::cutoff_ [private] |
bool Bonmin::OaDecompositionBase::solverManip::deleteSolver_ [private] |
OsiObject* * Bonmin::OaDecompositionBase::solverManip::objects_ [private] |
Some objects the feasiblitiy of which to verify.
Definition at line 92 of file BonOaDecBase.hpp.
Referenced by setObjects().
int Bonmin::OaDecompositionBase::solverManip::nObjects_ [private] |
int Bonmin::OaDecompositionBase::solverManip::numcols_ [private] |
Number of columns.
Definition at line 98 of file BonOaDecBase.hpp.
Referenced by cloneOther(), and getCached().
int Bonmin::OaDecompositionBase::solverManip::numrows_ [private] |
Number of rows.
Definition at line 100 of file BonOaDecBase.hpp.
Referenced by cloneOther(), getCached(), and restore().
const double* Bonmin::OaDecompositionBase::solverManip::siColLower_ [private] |
Lower bounds on variables.
Definition at line 102 of file BonOaDecBase.hpp.
Referenced by getCached().
const double* Bonmin::OaDecompositionBase::solverManip::siColUpper_ [private] |
Upper bounds on variables.
Definition at line 104 of file BonOaDecBase.hpp.
Referenced by getCached().
1.4.7