Determines the rate of cooling within pallas::SimulatedAnnealing.
More...
#include <cooling_schedule.h>
Determines the rate of cooling within pallas::SimulatedAnnealing.
void pallas::CoolingSchedule::calc_start_temperature |
( |
const GradientProblem & |
problem, |
|
|
internal::State & |
state, |
|
|
StepFunction * |
step_function |
|
) |
| |
Estimates an appropriate starting temperature.
If no starting temperature is supplied by the user, this method attempts to approximate an acceptable starting temperature by sampling random points about the starting point in order to gauge the magnitude of the cost function.
- Parameters
-
problem | pallas::GradientProblem. The problem to optimize. |
state | pallas::internal::State. The details of the current state of the minimization algorithm. |
step_function | pallas::StepFunction. This function produces randomized candidate solutions. |
Creates a pointer to a cooling schedule.
Based on the options the proper cooling schedule, with correct parameters, is returned from this function.
- Parameters
-
- Returns
- pallas::CoolingSchedule*. A pointer to a cooling schedule.
void pallas::CoolingSchedule::set_temperature |
( |
double |
T | ) |
|
Sets the current temperature.
- Parameters
-
T | double. The current temperature to set the cooling schedule at. |
virtual void pallas::CoolingSchedule::update_temperature |
( |
| ) |
|
|
pure virtual |
double pallas::CoolingSchedule::boltzmann_constant |
|
protected |
Initial temperature the cooling schedule should begin at. Boltzmann constant in the probabilistic acceptance criteria (increase for less stringent criteria at each temperature).
double pallas::CoolingSchedule::temperature |
|
protected |
Current temperature of the cooling schedule.
The documentation for this class was generated from the following files: