ExponentialTemperature
- class pyoptex.doe.cost_optimal.codex.temperature.ExponentialTemperature(T0, rho=0.95, kappa=4)[source]
Exponential temperature which decreases with an accepted state, and increases with a rejected state. The rate of increase/decrease is represented by kappa. E.g. kappa = 4 requires 4 rejections to reach the same temperature as one acceptation.
Attributes
- rhofloat
The rate at which the temperature decreases.
- kappaint or float
The number of rejections per accept for a stable temperature.
- alphafloat
Derived value from kappa and rho.
- T0float
The starting temperature.
- Tfloat
The current temperature.
- __init__(T0, rho=0.95, kappa=4)[source]
Initializes the temperature.
Attributes
- T0float
The starting temperature.
- rhofloat
The rate at which the temperature decreases.
- kappaint or float
The number of rejections per accept for a stable temperature.
Methods
Update when a new design has been accepted.
Update when a new design has been rejected.
Resets the temperature.