public class SimpleGridMinimizer extends java.lang.Object implements Minimizer<OptimProblem,IterativeMinimizer<Vector>>
| Modifier and Type | Class and Description |
|---|---|
static interface |
SimpleGridMinimizer.NewCellFactoryCtor
This factory constructs a new
SimpleCellFactory for each minimization problem. |
protected class |
SimpleGridMinimizer.Solution
This is the solution to a minimization problem using
SimpleGridMinimizer. |
| Modifier and Type | Field and Description |
|---|---|
protected double |
epsilon |
protected SimpleGridMinimizer.NewCellFactoryCtor |
factoryCtor |
protected int |
maxIterations |
protected int |
nStableIterations |
protected boolean |
parallel |
protected RandomLongGenerator |
uniform |
| Constructor and Description |
|---|
SimpleGridMinimizer(boolean parallel,
double epsilon,
int maxIterations)
Construct a
SimpleGridMinimizer to solve unconstrained minimization problems. |
SimpleGridMinimizer(SimpleGridMinimizer.NewCellFactoryCtor factoryCtor,
boolean parallel,
RandomLongGenerator uniform,
double epsilon,
int maxIterations,
int nStableIterations)
Construct a
SimpleGridMinimizer to solve unconstrained minimization problems. |
| Modifier and Type | Method and Description |
|---|---|
IterativeMinimizer<Vector> |
solve(OptimProblem problem)
Solve an optimization problem, e.g.,
OptimProblem. |
protected final boolean parallel
protected final RandomLongGenerator uniform
protected final SimpleGridMinimizer.NewCellFactoryCtor factoryCtor
protected final double epsilon
protected final int maxIterations
protected final int nStableIterations
public SimpleGridMinimizer(SimpleGridMinimizer.NewCellFactoryCtor factoryCtor, boolean parallel, RandomLongGenerator uniform, double epsilon, int maxIterations, int nStableIterations)
SimpleGridMinimizer to solve unconstrained minimization problems.factoryCtor - a factory that constructs a new instance of SimpleCellFactory for each problemparallel - true if the algorithm is to run in parallel (multi-core)uniform - a uniform random number generatorepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0maxIterations - the maximum number of iterationsnStableIterations - The solution is considered converged if the minimum does not change over this many iterations.public SimpleGridMinimizer(boolean parallel,
double epsilon,
int maxIterations)
SimpleGridMinimizer to solve unconstrained minimization problems.parallel - true if the algorithm is to run in parallel (multi-core)epsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0maxIterations - the maximum number of iterationspublic IterativeMinimizer<Vector> solve(OptimProblem problem) throws java.lang.Exception
OptimizerOptimProblem.solve in interface Optimizer<OptimProblem,IterativeMinimizer<Vector>>problem - an optimization problemjava.lang.Exception - when there is an error solving the problem