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