Class BoxGeneralizedSimulatedAnnealingMinimizer
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.general.box.BoxGeneralizedSimulatedAnnealingMinimizer
-
- All Implemented Interfaces:
Minimizer<BoxOptimProblem,IterativeSolution<Vector>>,BoxMinimizer<BoxOptimProblem,IterativeSolution<Vector>>,ConstrainedMinimizer<BoxOptimProblem,IterativeSolution<Vector>>,Optimizer<BoxOptimProblem,IterativeSolution<Vector>>
public class BoxGeneralizedSimulatedAnnealingMinimizer extends Object implements BoxMinimizer<BoxOptimProblem,IterativeSolution<Vector>>
This is an extension toGeneralizedSimulatedAnnealingMinimizer, which allows adding box constraints to bound solutions.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IterativeSolution<Vector>solve(BoxOptimProblem problem)Solve an optimization problem, e.g.,OptimProblem.
-
-
-
Constructor Detail
-
BoxGeneralizedSimulatedAnnealingMinimizer
public BoxGeneralizedSimulatedAnnealingMinimizer(int dim, double initialTemperature, double qv, double qa, StopCondition stopCondition, RandomLongGenerator rlg)Constructs a new instance of the boxed Generalized Simulated Annealing minimizer. SeeGeneralizedSimulatedAnnealingMinimizer(int, double, double, double, dev.nm.misc.algorithm.stopcondition.StopCondition, dev.nm.stat.random.rng.univariate.RandomLongGenerator)for a more detailed description.- Parameters:
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 used
-
BoxGeneralizedSimulatedAnnealingMinimizer
public BoxGeneralizedSimulatedAnnealingMinimizer(int dim, double initialTemperature, StopCondition stopCondition, RandomLongGenerator rlg)Constructs a new instance of the boxed Generalized Simulated Annealing minimizer.- Parameters:
dim- the dimension of the probleminitialTemperature- the initial temperaturestopCondition- the StopConditionrlg- the random number generator that is to be used
-
BoxGeneralizedSimulatedAnnealingMinimizer
public BoxGeneralizedSimulatedAnnealingMinimizer(int dim, StopCondition stopCondition)Constructs a new instance of the boxed Generalized Simulated Annealing minimizer. If you require repeatable results, consider using a constructor that accepts a RandomLongGenerator as an argument.- Parameters:
dim- the dimension of the problemstopCondition- the StopCondition
-
-
Method Detail
-
solve
public IterativeSolution<Vector> solve(BoxOptimProblem problem) throws Exception
Description copied from interface:OptimizerSolve an optimization problem, e.g.,OptimProblem.- Specified by:
solvein interfaceOptimizer<BoxOptimProblem,IterativeSolution<Vector>>- Parameters:
problem- an optimization problem- Returns:
- a solution to the optimization problem
- Throws:
Exception- when there is an error solving the problem
-
-