Go to the documentation of this file.
12 #ifndef CglResidualCapacity_H
13 #define CglResidualCapacity_H
19 #include "CoinError.hpp"
50 const std::string mpdDir );
97 virtual void generateCuts(
const OsiSolverInterface & si, OsiCuts & cs,
136 void gutsOfConstruct (
const double tolerance);
147 void resCapPreprocess(
const OsiSolverInterface& si);
150 RowType determineRowType(
const OsiSolverInterface& si,
151 const int rowLen,
const int* ind,
152 const double* coef,
const char sense,
154 const double* colLowerBound,
155 const double* colUpperBound)
const;
157 bool treatAsLessThan(
const OsiSolverInterface& si,
158 const int rowLen,
const int* ind,
161 const double* colLowerBound,
162 const double* colUpperBound)
const;
165 void generateResCapCuts(
const OsiSolverInterface& si,
167 const double* colUpperBound,
168 const double* colLowerBound,
169 const CoinPackedMatrix& matrixByRow,
171 const double* coefByRow,
173 const CoinBigIndex* rowStarts,
174 const int* rowLengths,
179 bool resCapSeparation(
const OsiSolverInterface& si,
180 const int rowLen,
const int* ind,
184 const double* colUpperBound,
185 const double* colLowerBound,
186 OsiRowCut& resCapCut)
const;
237 const std::string mpdDir);
virtual CglCutGenerator * clone() const
Clone.
void setDoPreproc(int value)
Set doPreproc.
Information about where the cut generator is invoked from.
void CglResidualCapacityUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglResidualCapacity class.
CglResidualCapacity()
Default constructor.
bool getDoPreproc() const
Get doPreproc.
Cut Generator Base Class.
double getTolerance() const
Get Tolerance.
CglResidualCapacity & operator=(const CglResidualCapacity &rhs)
Assignment operator.
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
Generate Residual Capacity cuts for the model data contained in si.
virtual void refreshPrep()
This is to refresh preprocessing.
void setEpsilon(double value)
Set Epsilon.
friend void CglResidualCapacityUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglResidualCapacity class.
void setTolerance(double value)
Set Tolerance.
double getEpsilon() const
Get Epsilon.
virtual ~CglResidualCapacity()
Destructor.
Residual Capacity Inequalities Cut Generator Class.