Class FastAnnealingFunction
- java.lang.Object
-
- dev.nm.solver.multivariate.unconstrained.annealing.annealingfunction.SimpleAnnealingFunction
-
- dev.nm.solver.multivariate.unconstrained.annealing.annealingfunction.FastAnnealingFunction
-
- All Implemented Interfaces:
AnnealingFunction
public class FastAnnealingFunction extends SimpleAnnealingFunction
Matlab default: @annealingfast - The step has length temperature, with direction uniformly at random. The square size is equal to the temperature.
-
-
Constructor Summary
Constructors Constructor Description FastAnnealingFunction(int dim, RandomStandardNormalGenerator rnorm)
Constructs a new instance where the RVG is created from a given RLG.FastAnnealingFunction(RandomVectorGenerator rvg)
Constructs a new instance that uses a given RVG.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getStepLength(double temperature)
-
Methods inherited from class dev.nm.solver.multivariate.unconstrained.annealing.annealingfunction.SimpleAnnealingFunction
nextProposal
-
-
-
-
Constructor Detail
-
FastAnnealingFunction
public FastAnnealingFunction(int dim, RandomStandardNormalGenerator rnorm)
Constructs a new instance where the RVG is created from a given RLG.- Parameters:
dim
- the number of dimensions of the annealing functionrnorm
- the standard Normal RNG to be used
-
FastAnnealingFunction
public FastAnnealingFunction(RandomVectorGenerator rvg)
Constructs a new instance that uses a given RVG.- Parameters:
rvg
- an rvg that gives the random directions
-
-
Method Detail
-
getStepLength
public double getStepLength(double temperature)
- Specified by:
getStepLength
in classSimpleAnnealingFunction
-
-