Class FastTemperatureFunction
- java.lang.Object
-
- dev.nm.solver.multivariate.unconstrained.annealing.temperaturefunction.SimpleTemperatureFunction
-
- dev.nm.solver.multivariate.unconstrained.annealing.temperaturefunction.FastTemperatureFunction
-
- All Implemented Interfaces:
TemperatureFunction
public class FastTemperatureFunction extends SimpleTemperatureFunction
Linear decay, where \(T_k = T_0 / k\).
-
-
Constructor Summary
Constructors Constructor Description FastTemperatureFunction(double initialTemperature)
Constructs a new instance with an initial temperature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
temperature(int k)
Matlab: @temperaturefast - The temperature is equal to InitialTemperature / k.-
Methods inherited from class dev.nm.solver.multivariate.unconstrained.annealing.temperaturefunction.SimpleTemperatureFunction
acceptanceTemperature, visitingTemperature
-
-
-
-
Method Detail
-
temperature
public double temperature(int k)
Matlab: @temperaturefast - The temperature is equal to InitialTemperature / k.- Specified by:
temperature
in classSimpleTemperatureFunction
- Parameters:
k
- the time at which to get a temperature, or the annealing parameter, same as the iteration number until reannealing- Returns:
- the temperature at time t
-
-