P
- the optimization problem typeT
- the minimizer type for local searchpublic class LocalSearchCellFactory<P extends OptimProblem,T extends IterativeMinimizer<OptimProblem>> extends SimpleCellFactory
Modifier and Type | Class and Description |
---|---|
class |
LocalSearchCellFactory.LocalSearchCell
A
LocalSearchCell implements the two genetic operations. |
static interface |
LocalSearchCellFactory.MinimizerFactory<U extends IterativeMinimizer<OptimProblem>>
This factory constructs a new
Minimizer for each mutation operation. |
SimpleCellFactory.SimpleCell
uniform
Constructor and Description |
---|
LocalSearchCellFactory(LocalSearchCellFactory.MinimizerFactory<T> factory,
RandomLongGenerator uniform)
Construct an instance of a
LocalSearchCellFactory . |
Modifier and Type | Method and Description |
---|---|
LocalSearchCellFactory.LocalSearchCell |
getSimpleCell(RealScalarFunction f,
Vector x)
Construct an instance of a
SimpleCell . |
public LocalSearchCellFactory(LocalSearchCellFactory.MinimizerFactory<T> factory, RandomLongGenerator uniform)
LocalSearchCellFactory
.factory
- a factory that generates a new instance of a Minimizer
for local
searchuniform
- a uniform random number generatorpublic LocalSearchCellFactory.LocalSearchCell getSimpleCell(RealScalarFunction f, Vector x)
SimpleCellFactory
SimpleCell
.getSimpleCell
in class SimpleCellFactory
f
- a real-valued functionx
- a candidate solutionSimpleCell
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.