12 class CoinWarmStartBasis;
16 const std::string mpdDir );
34 virtual void generateCuts(
const OsiSolverInterface & si, OsiCuts & cs,
40 const CoinPackedMatrix & columnCopy,
41 const CoinPackedMatrix & rowCopy,
42 const double * colsol,
43 const double * colLower,
const double * colUpper,
44 const double * rowLower,
const double * rowUpper,
46 const CoinWarmStartBasis* warm,
52 const CoinPackedMatrix & columnCopy,
53 const double * colsol,
54 const double * colLower,
const double * colUpper,
55 const double * rowLower,
const double * rowUpper,
57 const CoinWarmStartBasis* warm,
202 const std::string mpdDir );
void CglGomoryUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglGomory class.
Cut Generator Base Class.
Gomory Cut Generator Class.
double getLargestFactorMultiplier() const
Get LargestFactorMultiplier.
CglGomory(const CglGomory &)
Copy constructor.
void useAlternativeFactorization(bool yes=true)
Set/unset alternative factorization.
double awayAtRoot_
Only investigate if more than this away from integrality (at root)
void passInOriginalSolver(OsiSolverInterface *solver)
Pass in a copy of original solver (clone it)
virtual bool needsOptimalBasis() const
Return true if needs optimal basis to do cuts (will return true)
OsiSolverInterface * originalSolver() const
Returns original solver.
void setLimit(int limit)
Set.
virtual void refreshSolver(OsiSolverInterface *solver)
This can be used to refresh any inforamtion.
void setAwayAtRoot(double value)
Set away at root.
double away_
Only investigate if more than this away from integrality.
virtual CglCutGenerator * clone() const
Clone.
friend void CglGomoryUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglGomory class.
void setLargestFactorMultiplier(double value)
Set LargestFactorMultiplier.
int limitAtRoot_
Limit - only generate if fewer than this in cut (at root)
virtual int maximumLengthOfCutInTree() const
Return maximum length of cut in tree.
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
Generate Mixed Integer Gomory cuts for the model of the solver interface, si.
virtual std::string generateCpp(FILE *fp)
Create C++ lines to get to current state.
int numberTimesStalled_
Number of times stalled.
int gomoryType() const
Return type.
double getConditionNumberMultiplier() const
Get ConditionNumberMultiplier.
int alternateFactorization_
nonzero to use alternative factorization
void setConditionNumberMultiplier(double value)
Set ConditionNumberMultiplier.
void setLimitAtRoot(int limit)
Set at root (if <normal then use normal)
double getAwayAtRoot() const
Get away at root.
double conditionNumberMultiplier_
Multiplier for conditionNumber cut relaxation.
int generateCuts(const OsiRowCutDebugger *debugger, OsiCuts &cs, const CoinPackedMatrix &columnCopy, const double *colsol, const double *colLower, const double *colUpper, const double *rowLower, const double *rowUpper, const char *intVar, const CoinWarmStartBasis *warm, const CglTreeInfo info=CglTreeInfo())
Generates cuts given matrix and solution etc, returns number of cuts generated (no row copy passed in...
int generateCuts(const OsiRowCutDebugger *debugger, OsiCuts &cs, const CoinPackedMatrix &columnCopy, const CoinPackedMatrix &rowCopy, const double *colsol, const double *colLower, const double *colUpper, const double *rowLower, const double *rowUpper, const char *intVar, const CoinWarmStartBasis *warm, const CglTreeInfo info=CglTreeInfo())
Generates cuts given matrix and solution etc, returns number of cuts generated.
bool alternativeFactorization() const
Get whether alternative factorization being used.
int getLimitAtRoot() const
Get at root.
int limit_
Limit - only generate if fewer than this in cut.
double getAway() const
Get away.
CglGomory & operator=(const CglGomory &rhs)
Assignment operator.
void setGomoryType(int type)
Set type - 0 normal, 1 add original matrix one, 2 replace.
int gomoryType_
Type - 0 normal, 1 add original matrix one, 2 replace.
void setAway(double value)
Set away.
virtual ~CglGomory()
Destructor.
CglGomory()
Default constructor.
double largestFactorMultiplier_
Multiplier for largest factor cut relaxation.
OsiSolverInterface * originalSolver_
Original solver.
int dynamicLimitInTree_
Dynamic limit in tree.
Information about where the cut generator is invoked from.