5 #ifndef CglAllDifferent_H
6 #define CglAllDifferent_H
29 virtual void generateCuts(
const OsiSolverInterface & si, OsiCuts & cs,
AllDifferent Cut Generator Class This has a number of sets.
virtual ~CglAllDifferent()
Destructor.
int * start_
Start of each set.
int * originalWhich_
Original members.
int numberSets_
Number of sets.
CglAllDifferent & operator=(const CglAllDifferent &rhs)
Assignment operator.
int maxLook_
Maximum number of sets to look at at once.
int getMaxLook() const
Get Maximum number of sets to look at at once.
void setLogLevel(int value)
Set log level.
virtual void refreshSolver(OsiSolverInterface *solver)
This can be used to refresh any inforamtion.
int numberDifferent_
Total number of variables in all different sets.
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
This fixes (or reduces bounds) on sets of all different variables.
int getLogLevel() const
Get log level.
virtual CglCutGenerator * clone() const
Clone.
CglAllDifferent(int numberSets, const int *starts, const int *which)
Useful constructot.
int * which_
Members (0,1,....) not as in original model.
virtual std::string generateCpp(FILE *fp)
Create C++ lines to get to current state.
int logLevel_
Log level - 0 none, 1 - a bit, 2 - more details.
virtual bool mayGenerateRowCutsInTree() const
Returns true if may generate Row cuts in tree (rather than root node).
CglAllDifferent()
Default constructor.
void setMaxLook(int value)
Set Maximum number of sets to look at at once.
CglAllDifferent(const CglAllDifferent &)
Copy constructor.
Cut Generator Base Class.
Information about where the cut generator is invoked from.