#include <SbbHeuristic.hpp>
Inheritance diagram for SbbHeuristic:
Public Member Functions | |
SbbHeuristic (SbbModel &model) | |
virtual void | setModel (SbbModel *model) |
update model (This is needed if cliques update matrix etc) | |
virtual SbbHeuristic * | clone () const=0 |
Clone. | |
virtual int | solution (double &objectiveValue, double *newSolution)=0 |
virtual int | solution (double &objectiveValue, double *newSolution, OsiCuts &cs) |
Protected Attributes | |
SbbModel * | model_ |
Model. | |
Private Member Functions | |
SbbHeuristic & | operator= (const SbbHeuristic &rhs) |
Illegal Assignment operator. |
Definition at line 18 of file SbbHeuristic.hpp.
|
returns 0 if no solution, 1 if valid solution, -1 if just returning an estimate of best possible solution with better objective value than one passed in Sets solution values if good, sets objective value (only if nonzero code) This is called at same time as cut generators - so can add cuts Default is do nothing Definition at line 49 of file SbbHeuristic.hpp.
00051 {return 0;};
|
|
returns 0 if no solution, 1 if valid solution with better objective value than one passed in Sets solution values if good, sets objective value This is called after cuts have been added - so can not add cuts Implemented in SbbRounding, and SbbLocalSearch. Referenced by SbbModel::branchAndBound(), and SbbModel::integerPresolveThisModel(). |