Go to the documentation of this file.
6 #ifndef CbcHeuristicRINS_H
7 #define CbcHeuristicRINS_H
53 virtual int solution(
double &objectiveValue,
int numberSolutions_
Number of solutions so we can do something at solution.
char * used_
Whether a variable has been in a solution.
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
CbcHeuristicRINS & operator=(const CbcHeuristicRINS &rhs)
Assignment operator.
virtual void setModel(CbcModel *model)
update model (This is needed if cliques update matrix etc)
char * used() const
Used array so we can set.
void setSolutionCount(int value)
Resets number of solutions.
void setLastNode(int value)
Resets lastNode.
int lastNode_
Node when last done.
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution.
int numberTries_
Number of tries.
virtual CbcHeuristic * clone() const
Clone.
Simple Branch and bound class.
int numberSuccesses_
Number of successes.
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...
void setHowOften(int value)
Sets how often to do it.
int howOften_
How often to do (code can change)
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
int stateOfFixing_
State of fixing continuous variables - 0 - not tried +n - this divisor makes small enough -n - this d...
int solutionFix(double &objectiveValue, double *newSolution, const int *keep)
This version fixes stuff and does IP.