Class BoltzAnnealingFunction
- java.lang.Object
-
- dev.nm.solver.multivariate.unconstrained.annealing.annealingfunction.SimpleAnnealingFunction
-
- dev.nm.solver.multivariate.unconstrained.annealing.annealingfunction.BoltzAnnealingFunction
-
- All Implemented Interfaces:
AnnealingFunction
public class BoltzAnnealingFunction extends SimpleAnnealingFunction
Matlab: @annealingboltz - The step has length square root of temperature, with direction uniformly at random.
-
-
Constructor Summary
Constructors Constructor Description BoltzAnnealingFunction(int dim, RandomStandardNormalGenerator rnorm)
Constructs a new instance where the RVG is created from a given RLG.BoltzAnnealingFunction(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
-
BoltzAnnealingFunction
public BoltzAnnealingFunction(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
-
BoltzAnnealingFunction
public BoltzAnnealingFunction(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
-
-