protected class DEOptim.Solution extends SimpleGridMinimizer.Solution
DEOptim
.f, factory, fmin, fminLast, initials, iteration, nNoChanges, xmin
parallel, population, uniform
Modifier | Constructor and Description |
---|---|
protected |
Solution(RealScalarFunction f) |
Modifier and Type | Method and Description |
---|---|
Chromosome |
getChild(int i)
Produce a child chromosome.
|
List<Chromosome> |
getNextGeneration(List<Chromosome> parents,
List<Chromosome> children)
Populate the next generation using the parent and children chromosome pools.
|
getFirstGeneration, isConverged, minimizer, minimum, search, setInitials, step
getBest, getNewPool, getOne, nChildren, nPopulation, run
protected Solution(RealScalarFunction f)
public List<Chromosome> getNextGeneration(List<Chromosome> parents, List<Chromosome> children)
GeneticAlgorithm
getNextGeneration
in class GeneticAlgorithm
parents
- the parent chromosome poolchildren
- the children chromosome poolpublic Chromosome getChild(int i)
GeneticAlgorithm
getChild
in class GeneticAlgorithm
i
- an index that ranges from 0 to (population size - 1)Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.