Class SimpleAnnealingFunction
- java.lang.Object
-
- dev.nm.solver.multivariate.unconstrained.annealing.annealingfunction.SimpleAnnealingFunction
-
- All Implemented Interfaces:
AnnealingFunction
- Direct Known Subclasses:
BoltzAnnealingFunction
,FastAnnealingFunction
public abstract class SimpleAnnealingFunction extends Object implements AnnealingFunction
This annealing function takes a random step in a uniform direction, where the step size depends only on the temperature.
-
-
Constructor Summary
Constructors Constructor Description SimpleAnnealingFunction(RandomVectorGenerator rvg)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract double
getStepLength(double temperature)
Vector
nextProposal(Vector x0, double temperature)
Gets the next proposal, given the current state and the temperature.
-
-
-
Constructor Detail
-
SimpleAnnealingFunction
public SimpleAnnealingFunction(RandomVectorGenerator rvg)
-
-
Method Detail
-
nextProposal
public Vector nextProposal(Vector x0, double temperature)
Description copied from interface:AnnealingFunction
Gets the next proposal, given the current state and the temperature.- Specified by:
nextProposal
in interfaceAnnealingFunction
- Parameters:
x0
- the current state of the systemtemperature
- the current temperature of the system- Returns:
- the next proposal
-
getStepLength
public abstract double getStepLength(double temperature)
-
-