16 const std::string mpdDir );
41 virtual void generateCuts(
const OsiSolverInterface & si, OsiCuts & cs,
51 const int * possible=NULL);
61 const int * cliqueMember);
117 const CoinPackedMatrix & rowCopy,
118 const double * solution,
const double * dj,
119 OsiCuts & cs,
const int * suitableRow,
158 const std::string mpdDir );
void CglOddHoleUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglOddHole class.
Cut Generator Base Class.
Odd Hole Cut Generator Class.
void createCliqueList(int numberCliques, const int *cliqueStart, const int *cliqueMember)
Create a list of extra row cliques which may not be in matrix At present these are classical cliques.
void setMinimumViolation(double value)
virtual CglCutGenerator * clone() const
Clone.
void createRowList(const OsiSolverInterface &si, const int *possible=NULL)
Create a list of rows which might yield cuts this is to speed up process The possible parameter is a ...
void createRowList(int numberRows, const int *whichRow)
This version passes in a list - 1 marks possible.
double minimumViolation_
Minimum violation.
double getMinimumViolationPer() const
Minimum violation per entry.
void setMaximumEntries(int value)
void setMinimumViolationPer(double value)
CglOddHole(const CglOddHole &)
Copy constructor.
int * member_
clique members
CglOddHole & operator=(const CglOddHole &rhs)
Assignment operator.
CglOddHole()
Default constructor.
int * suitableRows_
list of suitableRows
int * startClique_
start of each clique
double getMinimumViolation() const
Minimum violation.
virtual ~CglOddHole()
Destructor.
int getMaximumEntries() const
Maximum number of entries in a cut.
int numberCliques_
number of cliques
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
Generate odd hole cuts for the model of the solver interface, si.
double minimumViolationPer_
Minimum violation per entry.
int numberPossible()
Returns how many rows might give odd hole cuts.
friend void CglOddHoleUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglOddHole class.
void generateCuts(const OsiRowCutDebugger *debugger, const CoinPackedMatrix &rowCopy, const double *solution, const double *dj, OsiCuts &cs, const int *suitableRow, const int *fixedColumn, const CglTreeInfo info, bool packed)
Generate cuts from matrix copy and solution If packed true then <=1 rows, otherwise >=1 rows.
virtual void refreshSolver(OsiSolverInterface *solver)
This can be used to refresh any inforamtion.
int maximumEntries_
Maximum number of entries in a cut.
int numberRows_
number of rows when suitability tested
Information about where the cut generator is invoked from.