30#ifndef BlisHeuristic_h_
31#define BlisHeuristic_h_
36#include "CoinPackedMatrix.hpp"
93 name_ = strdup(
"Unknown");
110 name_ = strdup(
"Unknown");
163 double * newSolution)=0;
174 double * newSolution,
175 OsiCuts & cs) {
return 0; }
BlisModel * model_
Pointer to the model.
int noSolCalls() const
Number called and no cons found.
void addCalls(int c=1)
Record number of times called.
virtual BlisHeuristic * clone() const
Clone a heuristic.
virtual void setModel(BlisModel *model)
update model (This is needed if cliques update matrix etc).
double time_
Used CPU/User time.
virtual void setStrategy(BlisHeurStrategy strategy)
Get/set strategy.
virtual void setHeurCallFrequency(int freq)
Get/set call frequency.
int numSolutions_
Number of solutions found.
BlisHeuristic(BlisModel *model, const char *name, BlisHeurStrategy strategy, int heurCallFrequency)
Useful constructor.
virtual ~BlisHeuristic()
Distructor.
void addNoSolCalls(int n=1)
Increase the number of no cons called.
BlisHeuristic(const BlisHeuristic &rhs)
Copy constructor.
virtual bool 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...
int heurCallFrequency_
The frequency with which to call the heuristic.
int numSolutions() const
Number of solutions found.
void addTime(double t=0.0)
Record Cpu time used.
BlisHeuristic()
Default Constructor.
double time() const
Cpu time used.
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...
int calls() const
Number of times called.
char * name_
Heuristics name.
BlisHeurStrategy strategy_
When to call findSolution() routine.
void addNumSolutions(int num=1)
Record number of solutions found.
int noSolsCalls_
The times of calling this heuristic and no solutions found.
const char * name() const
return name of generator.
virtual int heurCallFrequency() const
int calls_
The times of calling this heuristic.
virtual BlisHeurStrategy strategy() const