#include <BonOaDecBase.hpp>
Collaboration diagram for Bonmin::OaDecompositionBase::solverManip:
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). | |
bool | integerFeasible (const OsiBranchingInformation &info) const |
Check for integer feasibility of a solution return true if it is feasible. | |
void | fixIntegers (const OsiBranchingInformation &info) |
Fix integer variables in si to their values in colsol. | |
bool | isDifferentOnIntegers (const double *colsol) |
Check if solution in solver is the same as colsol on integer variables. | |
bool | isDifferentOnIntegers (const double *colsol, const double *other) |
Check if two solutions are the same on integer variables. | |
void | installCuts (const OsiCuts &cs, int numberCuts) |
Install cuts in solver. | |
OsiSolverInterface * | si () |
Get pointer to solver interface. | |
void | setObjects (OsiObject **objects, int nObjects) |
Set objects. | |
void | setIntegerTolerance (double v) |
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.*/. | |
double | integerTolerance_ |
The OsiSolverInterface manipulated may already exist or may be cloned from another one.
Definition at line 122 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 | |||
) |
Constructor.
Bonmin::OaDecompositionBase::solverManip::solverManip | ( | const OsiSolverInterface & | si | ) |
Constructor which clone an other interface.
Bonmin::OaDecompositionBase::solverManip::~solverManip | ( | ) |
Destructor.
void Bonmin::OaDecompositionBase::solverManip::restore | ( | ) |
Restore solver.
void Bonmin::OaDecompositionBase::solverManip::cloneOther | ( | const OsiSolverInterface & | si | ) |
Clone the state of another solver (bounds, cutoff, basis).
bool Bonmin::OaDecompositionBase::solverManip::integerFeasible | ( | const OsiBranchingInformation & | info | ) | const |
Check for integer feasibility of a solution return true if it is feasible.
void Bonmin::OaDecompositionBase::solverManip::fixIntegers | ( | const OsiBranchingInformation & | info | ) |
Fix integer variables in si to their values in colsol.
bool Bonmin::OaDecompositionBase::solverManip::isDifferentOnIntegers | ( | const double * | colsol | ) |
Check if solution in solver is the same as colsol on integer variables.
bool Bonmin::OaDecompositionBase::solverManip::isDifferentOnIntegers | ( | const double * | colsol, | |
const double * | other | |||
) |
Check if two solutions are the same on integer variables.
void Bonmin::OaDecompositionBase::solverManip::installCuts | ( | const OsiCuts & | cs, | |
int | numberCuts | |||
) |
Install cuts in solver.
OsiSolverInterface* Bonmin::OaDecompositionBase::solverManip::si | ( | ) | [inline] |
void Bonmin::OaDecompositionBase::solverManip::setObjects | ( | OsiObject ** | objects, | |
int | nObjects | |||
) | [inline] |
void Bonmin::OaDecompositionBase::solverManip::setIntegerTolerance | ( | double | v | ) | [inline] |
void Bonmin::OaDecompositionBase::solverManip::getCached | ( | ) | [private] |
double* Bonmin::OaDecompositionBase::solverManip::colLower_ [private] |
double* Bonmin::OaDecompositionBase::solverManip::colUpper_ [private] |
double Bonmin::OaDecompositionBase::solverManip::cutoff_ [private] |
bool Bonmin::OaDecompositionBase::solverManip::deleteSolver_ [private] |
Some objects the feasiblitiy of which to verify.
Definition at line 196 of file BonOaDecBase.hpp.
Referenced by setObjects().
int Bonmin::OaDecompositionBase::solverManip::nObjects_ [private] |
int Bonmin::OaDecompositionBase::solverManip::numcols_ [private] |
int Bonmin::OaDecompositionBase::solverManip::numrows_ [private] |
const double* Bonmin::OaDecompositionBase::solverManip::siColLower_ [private] |
const double* Bonmin::OaDecompositionBase::solverManip::siColUpper_ [private] |
double Bonmin::OaDecompositionBase::solverManip::integerTolerance_ [private] |