Cooling criteria (for Simulated Annealing). More...
#include <simulated-annealing.hh>
Public Member Functions | |
abstract_cooling_schedule () | |
Constructor. | |
virtual double | operator() (double temp, feasible_solution &fs)=0 |
The function that updates the SA temperature. | |
virtual | ~abstract_cooling_schedule () |
Virtual destructor. |
Cooling criteria (for Simulated Annealing).
An abstract annealing schedule. Implementations should decide the new temperature every time the subscript operator is called (every search iteration)
Definition at line 49 of file simulated-annealing.hh.
Constructor.
Definition at line 53 of file simulated-annealing.hh.
virtual mets::abstract_cooling_schedule::~abstract_cooling_schedule | ( | ) | [inline, virtual] |
Virtual destructor.
Definition at line 58 of file simulated-annealing.hh.
virtual double mets::abstract_cooling_schedule::operator() | ( | double | temp, |
feasible_solution & | fs | ||
) | [pure virtual] |
The function that updates the SA temperature.
temp | The actual annealing temperature. |
fs | The current working solution. |
Implemented in mets::linear_cooling, and mets::exponential_cooling.