Class SimpleCellFactory
- java.lang.Object
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.SimpleCellFactory
-
- Direct Known Subclasses:
DEOptimCellFactory,LocalSearchCellFactory
public class SimpleCellFactory extends Object
ASimpleCellFactoryproduces SimpleCellFactory.SimpleCells. A SimpleCellFactory.SimpleCell is a chromosome for a real valued function (an optimization problem) and a candidate solution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSimpleCellFactory.SimpleCellASimpleCellimplements the two genetic operations.
-
Field Summary
Fields Modifier and Type Field Description protected RandomLongGeneratoruniformthe uniform random number generator
-
Constructor Summary
Constructors Constructor Description SimpleCellFactory(double rate, RandomLongGenerator uniform)Construct an instance of aSimpleCellFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleCellFactory.SimpleCellgetSimpleCell(RealScalarFunction f, Vector x)Construct an instance of aSimpleCell.
-
-
-
Field Detail
-
uniform
protected final RandomLongGenerator uniform
the uniform random number generator
-
-
Constructor Detail
-
SimpleCellFactory
public SimpleCellFactory(double rate, RandomLongGenerator uniform)Construct an instance of aSimpleCellFactory.- Parameters:
rate- the convergence rateuniform- a uniform random number generator
-
-
Method Detail
-
getSimpleCell
public SimpleCellFactory.SimpleCell getSimpleCell(RealScalarFunction f, Vector x)
Construct an instance of aSimpleCell.- Parameters:
f- a real-valued functionx- a candidate solution- Returns:
- a
SimpleCell
-
-