Go to the documentation of this file.
6 #ifndef CbcHeuristicLocal_H
7 #define CbcHeuristicLocal_H
56 virtual int solution(
double &objectiveValue,
125 virtual int solution(
double &objectiveValue,
126 double *newSolution);
191 virtual int solution(
double &objectiveValue,
192 double *newSolution);
251 virtual int solution(
double &objectiveValue,
252 double *newSolution);
257 if (value > 0 && value <= 10)
virtual CbcHeuristic * clone() const
Clone.
double largeValue() const
Gets large cost value.
virtual CbcHeuristic * clone() const
Clone.
void setSearchType(int value)
Sets type of search.
virtual void setModel(CbcModel *model)
update model (This is needed if cliques update matrix etc)
Naive class a) Fix all ints as close to zero as possible b) Fix all ints with nonzero costs and < lar...
int * used_
Whether a variable has been in a solution (also when)
void setNumberSolutions(int value)
Sets number of solutions to use.
virtual CbcHeuristic * clone() const
Clone.
virtual void setModel(CbcModel *model)
update model (This is needed if cliques update matrix etc)
CbcHeuristicFPump * feasibilityPump_
Copy of Feasibility pump.
double large_
Data Large value.
int * used() const
Used array so we can set.
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution.
int * used_
Whether a variable has been in a solution (also when)
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution.
std::vector< double > attempts_
Attempts.
virtual CbcHeuristic * clone() const
Clone.
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
Simple Branch and bound class.
virtual void setModel(CbcModel *model)
update model (This is needed if cliques update matrix etc)
int numberSolutions_
Number of solutions so we only do after new solution.
void setLargeValue(double value)
Sets large cost value.
CbcHeuristicNaive & operator=(const CbcHeuristicNaive &rhs)
Assignment operator.
CbcHeuristicCrossover & operator=(const CbcHeuristicCrossover &rhs)
Assignment operator.
void setIncrement(double value)
Set extra increment.
int numberSolutions_
Number of solutions so we only do after new solution.
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
double random_[10]
Random numbers to stop same search happening.
int useNumber_
Number of solutions to use.
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...
CbcHeuristicLocal & operator=(const CbcHeuristicLocal &rhs)
Assignment operator.
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
int * used() const
Used array so we can set.
virtual void setModel(CbcModel *model)
update model (This is needed if cliques update matrix etc)
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
int solutionFix(double &objectiveValue, double *newSolution, const int *keep)
This version fixes stuff and does IP.
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution.
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
CbcHeuristicProximity & operator=(const CbcHeuristicProximity &rhs)
Assignment operator.
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution.
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
double increment_
Increment to use if no change.