Class BoxGSAAnnealingFunction
- java.lang.Object
-
- dev.nm.solver.multivariate.unconstrained.annealing.annealingfunction.BoxGSAAnnealingFunction
-
- All Implemented Interfaces:
AnnealingFunction
public final class BoxGSAAnnealingFunction extends Object implements AnnealingFunction
-
-
Constructor Summary
Constructors Constructor Description BoxGSAAnnealingFunction(Vector lower, Vector upper, double qv, RandomLongGenerator uniform)
Constructs a boxed annealing function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector
nextProposal(Vector currentState, double temperature)
Gets the next proposal, given the current state and the temperature.
-
-
-
Constructor Detail
-
BoxGSAAnnealingFunction
public BoxGSAAnnealingFunction(Vector lower, Vector upper, double qv, RandomLongGenerator uniform)
Constructs a boxed annealing function.- Parameters:
lower
- lower boundsupper
- upper boundsqv
- a visiting parameteruniform
- a random long generator
-
-
Method Detail
-
nextProposal
public Vector nextProposal(Vector currentState, double temperature)
Description copied from interface:AnnealingFunction
Gets the next proposal, given the current state and the temperature.- Specified by:
nextProposal
in interfaceAnnealingFunction
- Parameters:
currentState
- the current state of the systemtemperature
- the current temperature of the system- Returns:
- the next proposal
-
-