public class PerturbationAroundPoint extends Object implements FirstGeneration
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
List<SimpleCellFactory.SimpleCell> |
getFirstGeneration()
Generate the initial pool of chromosomes.
|
public PerturbationAroundPoint(RealScalarFunction f, SimpleCellFactory factory, int poolSize, Vector var, Vector initial0, long seed)
f - the objective functionfactory - a cell factorypoolSize - the number of chromosomes to generatevar - the variance in each dimensioninitial0 - the initial search pointseed - the seedpublic List<SimpleCellFactory.SimpleCell> getFirstGeneration()
FirstGenerationgetFirstGeneration in interface FirstGenerationCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.