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 int* 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);
void setDoPreproc(int value)
Set doPreproc.
virtual CglCutGenerator * clone() const
Clone.
Information about where the cut generator is invoked from.
Residual Capacity Inequalities Cut Generator Class.
virtual void refreshPrep()
This is to refresh preprocessing.
friend void CglResidualCapacityUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglResidualCapacity class.
double getTolerance() const
Get Tolerance.
CglResidualCapacity & operator=(const CglResidualCapacity &rhs)
Assignment operator.
Cut Generator Base Class.
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
Generate Residual Capacity cuts for the model data contained in si.
virtual ~CglResidualCapacity()
Destructor.
void setEpsilon(double value)
Set Epsilon.
bool getDoPreproc() const
Get doPreproc.
CglResidualCapacity()
Default constructor.
void setTolerance(double value)
Set Tolerance.
double getEpsilon() const
Get Epsilon.