toulbar2
|
#include <incop.h>
Public Member Functions | |
SimulatedAnnealing (double initialtemperature, int walklength) | |
int | acceptance (Move *move, Configuration *config) |
void | executebeforemove (Move *move, Configuration *configuration, OpProblem *problem) |
virtual void | executebeforemove (Move *move, Configuration *configuration, OpProblem *problem) |
virtual void | reinit (OpProblem *problem) |
virtual int | acceptance (Move *move, Configuration *config) |
Public Attributes | |
double | inittemperature |
double | delta |
double | temperature |
Simulated Annealing : linear temperature descent from inittemperature to 0
SimulatedAnnealing::SimulatedAnnealing | ( | double | initialtemperature, |
int | walklength | ||
) |
Constructor : 2 parameters : initial temperature and walk length : the fixed temperature decrement is computed.
References delta, and inittemperature.
|
virtual |
Acceptance function of the temperature : classical simulated annealing formula for accepting a bad move : probability = exp (-temperature/evaluationdelta)
Reimplemented from Metaheuristic.
References temperature, and Configuration::valuation.
|
virtual |
the temperature is lowered by delta
Reimplemented from Metaheuristic.
References delta, and temperature.
double SimulatedAnnealing::delta |
constant step for lowering the temperature
Referenced by executebeforemove(), and SimulatedAnnealing().
double SimulatedAnnealing::inittemperature |
initial temperature
Referenced by SimulatedAnnealing().
double SimulatedAnnealing::temperature |
current temperature
Referenced by acceptance(), and executebeforemove().