Go to the documentation of this file.
9 class CoinPresolveAction;
10 #include "CoinPresolveMatrix.hpp"
88 double feasibilityTolerance = 0.0,
89 bool keepIntegers =
true,
91 const char *prohibited = NULL,
93 const char *rowProhibited = NULL);
112 virtual void postsolve(
bool updateStatus =
true);
247 virtual const CoinPresolveAction *
presolve(CoinPresolveMatrix *prob);
259 virtual void postsolve(CoinPostsolveMatrix &prob);
int presolveActions_
Whether we want to skip dual part of presolve etc.
OsiSolverInterface * presolvedModel() const
Get presolved model.
OsiPresolve()
Default constructor (empty object)
int nrows_
Number of rows in original model.
int numberPasses_
Number of major passes.
int getNumRows() const
Return number of rows in original model.
int getNumCols() const
Return number of columns in original model.
void setPresolveActions(int action)
Fine control over presolve actions.
const int * originalColumns() const
Return a pointer to the original columns.
int * originalRow_
Original row numbers.
void gutsOfDestroy()
Destroys queued postsolve actions.
virtual const CoinPresolveAction * presolve(CoinPresolveMatrix *prob)
Apply presolve transformations to the problem.
OsiSolverInterface * presolvedModel_
Presolved model (solver interface loaded with the presolved problem)
CoinBigIndex nelems_
Number of nonzero matrix coefficients in the original model.
OsiSolverInterface * originalModel_
Original model (solver interface loaded with the original problem).
OsiSolverInterface * model() const
Return a pointer to the presolved model.
OSI interface to COIN problem simplification capabilities.
void setOriginalModel(OsiSolverInterface *model)
Set the pointer to the original model.
OsiSolverInterface * originalModel() const
Return a pointer to the original model.
void setPresolvedModel(OsiSolverInterface *presolvedModel)
Set presolved model.
void setNonLinearValue(double value)
"Magic" number.
double nonLinearValue() const
int * originalColumn_
Original column numbers.
double nonLinearValue_
"Magic" number.
const int * originalRows() const
Return a pointer to the original rows.
virtual ~OsiPresolve()
Virtual destructor.
virtual void postsolve(bool updateStatus=true)
Restate the solution to the presolved problem in terms of the original problem and load it into the o...
int ncols_
Number of columns in original model.
const CoinPresolveAction * paction_
The list of transformations applied.
Abstract Base Class for describing an interface to a solver.