Class LocalSearchCellFactory<P extends OptimProblem,T extends IterativeMinimizer<OptimProblem>>
- java.lang.Object
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.SimpleCellFactory
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.local.LocalSearchCellFactory<P,T>
-
- Type Parameters:
P- the optimization problem typeT- the minimizer type for local search
public class LocalSearchCellFactory<P extends OptimProblem,T extends IterativeMinimizer<OptimProblem>> extends SimpleCellFactory
A LocalSearchCellFactory produces LocalSearchCellFactory.LocalSearchCells. A LocalSearchCellFactory.LocalSearchCell is a chromosome for a real valued function (an optimization problem) and a candidate solution. Its mutation operation is by a local minimization method, Nelder-Mead, BFGS, searching the neighborhood of the current solution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLocalSearchCellFactory.LocalSearchCellALocalSearchCellimplements the two genetic operations.static interfaceLocalSearchCellFactory.MinimizerFactory<U extends IterativeMinimizer<OptimProblem>>This factory constructs a newMinimizerfor each mutation operation.-
Nested classes/interfaces inherited from class dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.SimpleCellFactory
SimpleCellFactory.SimpleCell
-
-
Field Summary
-
Fields inherited from class dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.SimpleCellFactory
uniform
-
-
Constructor Summary
Constructors Constructor Description LocalSearchCellFactory(LocalSearchCellFactory.MinimizerFactory<T> factory, RandomLongGenerator uniform)Construct an instance of aLocalSearchCellFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalSearchCellFactory.LocalSearchCellgetSimpleCell(RealScalarFunction f, Vector x)Construct an instance of aSimpleCell.
-
-
-
Constructor Detail
-
LocalSearchCellFactory
public LocalSearchCellFactory(LocalSearchCellFactory.MinimizerFactory<T> factory, RandomLongGenerator uniform)
Construct an instance of aLocalSearchCellFactory.- Parameters:
factory- a factory that generates a new instance of aMinimizerfor local searchuniform- a uniform random number generator
-
-
Method Detail
-
getSimpleCell
public LocalSearchCellFactory.LocalSearchCell getSimpleCell(RealScalarFunction f, Vector x)
Description copied from class:SimpleCellFactoryConstruct an instance of aSimpleCell.- Overrides:
getSimpleCellin classSimpleCellFactory- Parameters:
f- a real-valued functionx- a candidate solution- Returns:
- a
SimpleCell
-
-