Go to the documentation of this file.
8 #ifndef CbcHeuristicDINS_H
9 #define CbcHeuristicDINS_H
49 virtual int solution(
double &objectiveValue,
int numberSolutions_
Number of solutions so we can do something at solution.
void setConstraint(int value)
Sets tightness of extra constraint.
virtual void setModel(CbcModel *model)
update model (This is needed if cliques update matrix etc)
int solutionFix(double &objectiveValue, double *newSolution, const int *keep)
This version fixes stuff and does IP.
int numberSuccesses_
Number of successes.
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution.
void setMaximumKeep(int value)
Sets maximum number of solutions kept.
Simple Branch and bound class.
int maximumKeepSolutions_
Maximum number of solutions to keep.
int numberTries_
Number of tries.
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
void setHowOften(int value)
Sets how often to do it.
int ** values_
Values of integer variables.
int numberIntegers_
Number of integer variables.
virtual int solution(double &objectiveValue, double *newSolution)=0
returns 0 if no solution, 1 if valid solution with better objective value than one passed in Sets sol...
int localSpace_
Local parameter.
int howOften_
How often to do (code can change)
virtual CbcHeuristic * clone() const
Clone.
CbcHeuristicDINS & operator=(const CbcHeuristicDINS &rhs)
Assignment operator.
int numberKeptSolutions_
Number of solutions kept.