Go to the documentation of this file.
10 class CoinPresolveAction;
11 #include "CoinPresolveMatrix.hpp"
42 double feasibilityTolerance = 0.0,
43 bool keepIntegers =
true,
45 bool dropNames =
false,
46 bool doRowObjective =
false,
47 const char *prohibitedRows = NULL,
48 const char *prohibitedColumns = NULL);
54 double feasibilityTolerance = 0.0,
55 bool keepIntegers =
true,
57 bool dropNames =
false,
58 bool doRowObjective =
false);
305 virtual void postsolve(
bool updateStatus =
true);
358 virtual const CoinPresolveAction *
presolve(CoinPresolveMatrix *prob);
365 virtual void postsolve(CoinPostsolveMatrix &prob);
368 double feasibilityTolerance,
373 const char *prohibitedRows = NULL,
374 const char *prohibitedColumns = NULL);
This solves LPs using the simplex method.
ClpSimplex * originalModel_
Original model - must not be destroyed before postsolve.
bool doIntersection() const
Whether we want to allow duplicate intersections.
void setDoTripleton(bool doTripleton)
void destroyPresolve()
Gets rid of presolve actions (e.g.when infeasible)
ClpSimplex * presolvedModel(ClpSimplex &si, double feasibilityTolerance=0.0, bool keepIntegers=true, int numberPasses=5, bool dropNames=false, bool doRowObjective=false, const char *prohibitedRows=NULL, const char *prohibitedColumns=NULL)
bool doTighten() const
Whether we want to do tighten part of presolve.
void statistics()
Asks for statistics.
bool doTwoxTwo() const
Whether we want to do twoxtwo part of presolve.
void setNonLinearValue(double value)
"Magic" number.
void setDoDupcol(bool doDupcol)
void setDoDoubleton(bool doDoubleton)
void setDoSingleton(bool doSingleton)
ClpSimplex * originalModel() const
Return pointer to original model.
virtual ClpSimplex * gutsOfPresolvedModel(ClpSimplex *originalModel, double feasibilityTolerance, bool keepIntegers, int numberPasses, bool dropNames, bool doRowObjective, const char *prohibitedRows=NULL, const char *prohibitedColumns=NULL)
This is main part of Presolve.
bool doTransfer() const
Whether we want to do transfer part of presolve.
virtual ~ClpPresolve()
Virtual destructor.
void setDoTwoxtwo(bool doTwoxTwo)
int numberPasses_
Number of major passes.
bool doGubrow() const
Whether we want to do gubrow part of presolve.
void setDoTighten(bool doTighten)
void setDoIntersection(bool doIntersection)
double * rowObjective_
Row objective.
bool doDupcol() const
Whether we want to do dupcol part of presolve.
int * originalColumn_
Original column numbers.
const CoinPresolveAction * paction_
The list of transformations applied.
int presolveStatus() const
Return presolve status (0,1,2)
std::string saveFile_
Name of saved model file.
int presolvedModelToFile(ClpSimplex &si, std::string fileName, double feasibilityTolerance=0.0, bool keepIntegers=true, int numberPasses=5, bool dropNames=false, bool doRowObjective=false)
This version saves data in a file.
bool doSingleton() const
Whether we want to do singleton part of presolve.
void setDoDuprow(bool doDuprow)
void setDoImpliedFree(bool doImpliedfree)
int zeroSmall() const
How much we want to zero small values from aggregation - ratio 0 - 1.0e-12, 1 1.0e-11,...
bool doForcing() const
Whether we want to do forcing part of presolve.
int ncols_
The postsolved problem will expand back to its former size as postsolve transformations are applied.
ClpPresolve()
Default constructor.
bool doDependency() const
Whether we want to do dependency part of presolve.
const int * originalRows() const
return pointer to original rows
void setSubstitution(int value)
Substitution level.
int * originalRow_
Original row numbers.
This is the Clp interface to CoinPresolve.
bool doSingletonColumn() const
Whether we want to do singleton column part of presolve.
ClpSimplex * model() const
Return pointer to presolved model, Up to user to destroy.
double nonLinearValue() const
int substitution_
Substitution level.
void setPresolveActions(int action)
void setDoForcing(bool doForcing)
void setDoTransfer(bool doTransfer)
virtual void postsolve(bool updateStatus=true)
bool doDual() const
Whether we want to do dual part of presolve.
bool doDuprow() const
Whether we want to do duprow part of presolve.
double nonLinearValue_
"Magic" number.
bool doDoubleton() const
Whether we want to do doubleton part of presolve.
bool doTripleton() const
Whether we want to do tripleton part of presolve.
int presolveActions() const
Set whole group.
void setDoDependency(bool doDependency)
void setDoGubrow(bool doGubrow)
const int * originalColumns() const
return pointer to original columns
int presolveActions_
Whether we want to skip dual part of presolve etc.
void setOriginalModel(ClpSimplex *model)
Set pointer to original model.
void setZeroSmall(int value)
void setDoDual(bool doDual)
ClpSimplex * presolvedModel_
ClpPresolved model - up to user to destroy by deleteClpPresolvedModel.
void setDoSingletonColumn(bool doSingleton)
bool doImpliedFree() const
Whether we want to do impliedfree part of presolve.
virtual const CoinPresolveAction * presolve(CoinPresolveMatrix *prob)
If you want to apply the individual presolve routines differently, or perhaps add your own to the mix...