Class PerturbationAroundPoint
- java.lang.Object
-
- dev.nm.solver.multivariate.geneticalgorithm.minimizer.simplegrid.firstgeneration.PerturbationAroundPoint
-
- All Implemented Interfaces:
FirstGeneration
public class PerturbationAroundPoint extends Object implements FirstGeneration
The initial population is generated by adding a variance around a given initial.
-
-
Constructor Summary
Constructors Constructor Description PerturbationAroundPoint(RealScalarFunction f, SimpleCellFactory factory, int poolSize, Vector var, Vector initial0, long seed)Generate an initial pool of chromosomes by adding a variance around a given initial.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SimpleCellFactory.SimpleCell>getFirstGeneration()Generate the initial pool of chromosomes.
-
-
-
Constructor Detail
-
PerturbationAroundPoint
public PerturbationAroundPoint(RealScalarFunction f, SimpleCellFactory factory, int poolSize, Vector var, Vector initial0, long seed)
Generate an initial pool of chromosomes by adding a variance around a given initial.- Parameters:
f- the objective functionfactory- a cell factorypoolSize- the number of chromosomes to generatevar- the variance in each dimensioninitial0- the initial search pointseed- the seed
-
-
Method Detail
-
getFirstGeneration
public List<SimpleCellFactory.SimpleCell> getFirstGeneration()
Description copied from interface:FirstGenerationGenerate the initial pool of chromosomes.- Specified by:
getFirstGenerationin interfaceFirstGeneration- Returns:
- the initial pool of chromosomes
-
-