public class GSATemperatureFunction extends Object implements TemperatureFunction
Constructor and Description |
---|
GSATemperatureFunction(double T0,
double qv)
Constructs a GSA temperature function.
|
Modifier and Type | Method and Description |
---|---|
double |
acceptanceTemperature(int t)
Gets the acceptance temperature \(T^A_t\) at time t.
|
double |
visitingTemperature(int tZeroIndex)
Gets the visiting temperature \(T^V_t\) at time t.
|
public GSATemperatureFunction(double T0, double qv)
T0
- the initial temperatureqv
- the visiting parameterpublic double visitingTemperature(int tZeroIndex)
TemperatureFunction
visitingTemperature
in interface TemperatureFunction
tZeroIndex
- the time at which to get a temperature, or the annealing parameter, same as the
iteration number until reannealingpublic double acceptanceTemperature(int t)
TemperatureFunction
acceptanceTemperature
in interface TemperatureFunction
t
- the time at which to get a temperature, or the annealing parameter, same as the
iteration number until reannealingCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.