public class BoxGeneralizedSimulatedAnnealingMinimizer extends Object implements BoxMinimizer<BoxOptimProblem,IterativeSolution<Vector>>
GeneralizedSimulatedAnnealingMinimizer
, which allows adding box
constraints to bound solutions.Constructor and Description |
---|
BoxGeneralizedSimulatedAnnealingMinimizer(int dim,
double initialTemperature,
double qv,
double qa,
StopCondition stopCondition,
RandomLongGenerator rlg)
Constructs a new instance of the boxed Generalized Simulated Annealing minimizer.
|
BoxGeneralizedSimulatedAnnealingMinimizer(int dim,
double initialTemperature,
StopCondition stopCondition,
RandomLongGenerator rlg)
Constructs a new instance of the boxed Generalized Simulated Annealing minimizer.
|
BoxGeneralizedSimulatedAnnealingMinimizer(int dim,
StopCondition stopCondition)
Constructs a new instance of the boxed Generalized Simulated Annealing minimizer.
|
Modifier and Type | Method and Description |
---|---|
IterativeSolution<Vector> |
solve(BoxOptimProblem problem)
Solve an optimization problem, e.g.,
OptimProblem . |
public BoxGeneralizedSimulatedAnnealingMinimizer(int dim, double initialTemperature, double qv, double qa, StopCondition stopCondition, RandomLongGenerator rlg)
GeneralizedSimulatedAnnealingMinimizer.GeneralizedSimulatedAnnealingMinimizer(int, double, double, double, dev.nm.misc.algorithm.stopcondition.StopCondition, dev.nm.stat.random.rng.univariate.RandomLongGenerator)
for a more detailed description.dim
- the dimension of the probleminitialTemperature
- the initial temperatureqv
- the visiting parameterqa
- the acceptance parameterstopCondition
- the StopConditionrlg
- the random number generator that is to be usedpublic BoxGeneralizedSimulatedAnnealingMinimizer(int dim, double initialTemperature, StopCondition stopCondition, RandomLongGenerator rlg)
dim
- the dimension of the probleminitialTemperature
- the initial temperaturestopCondition
- the StopConditionrlg
- the random number generator that is to be usedpublic BoxGeneralizedSimulatedAnnealingMinimizer(int dim, StopCondition stopCondition)
dim
- the dimension of the problemstopCondition
- the StopConditionpublic IterativeSolution<Vector> solve(BoxOptimProblem problem) throws Exception
Optimizer
OptimProblem
.solve
in interface Optimizer<BoxOptimProblem,IterativeSolution<Vector>>
problem
- an optimization problemException
- when there is an error solving the problemCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.