30 #ifndef BlisHeuristic_h_
31 #define BlisHeuristic_h_
83 name_ = strdup(
"Unknown");
97 name_ = strdup(
"Unknown");
136 double * newSolution)=0;
147 double * newSolution,
double time()
Cpu time used.
BlisHeuristic & operator=(const BlisHeuristic &rhs)
Illegal Assignment operator.
virtual void setModel(BlisModel *model)
update model (This is needed if cliques update matrix etc).
int strategy_
When to call findSolution() routine.
Collections of row cuts and column cuts.
virtual ~BlisHeuristic()
Distructor.
BlisHeuristic(const BlisHeuristic &rhs)
Copy constructor.
int numSolutions_
Number of solutions found.
int numSolutions()
Number of solutions found.
double time_
Used CPU/User time.
BlisHeuristic(BlisModel *model, const char *name, int strategy)
Useful constructor.
const char * name() const
return name of generator.
virtual int searchSolution(double &objectiveValue, double *newSolution, OsiCuts &cs)
returns 0 if no solution, 1 if valid solution, -1 if just returning an estimate of best possible solu...
BlisModel * model_
Pointer to the model.
char * name_
Heuristics name.
int calls()
Cpu time used.
int calls_
The times of calling this heuristic.
virtual BlisHeuristic * clone() const =0
Clone a heuristic.
virtual void setStrategy(int strategy)
Get/set strategy.
BlisHeuristic()
Default Constructor.
virtual bool searchSolution(double &objectiveValue, double *newSolution)=0
returns 0 if no solution, 1 if valid solution with better objective value than one passed in Sets sol...
virtual int strategy()
Get/set strategy.