| Modifier and Type | Field and Description |
|---|---|
| private double | elitismRate
percentage of chromosomes copied to the next generation |
| Access | Constructor and Description |
|---|---|
| public | ElitisticListPopulation(final List<Chromosome>
list of chromosomes in the population chromosomes, final int maximal size of the population populationLimit, final double how many best chromosomes will be directly transferred to the next generation [in %] elitismRate)Creates a new |
| public | ElitisticListPopulation(final int
maximal size of the population populationLimit, final double how many best chromosomes will be directly transferred to the next generation [in %] elitismRate)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public double | |
| public Population | Returns: the beginnings of the next generation.Implements org. Start the population for the next generation. |
| public void | setElitismRate(final double
how many best chromosomes will be directly transferred to the next generation [in %] elitismRate)Sets the elitism rate, i.e. how many best chromosomes will be directly transferred to the next generation [in %]. |
| elitismRate | back to summary |
|---|---|
| private double elitismRate percentage of chromosomes copied to the next generation | |
| ElitisticListPopulation | back to summary |
|---|---|
| public ElitisticListPopulation(final List<Chromosome> chromosomes, final int populationLimit, final double elitismRate) throws NullArgumentException, NotPositiveException, NumberIsTooLargeException, OutOfRangeException Creates a new
| |
| ElitisticListPopulation | back to summary |
|---|---|
| public ElitisticListPopulation(final int populationLimit, final double elitismRate) throws NotPositiveException, OutOfRangeException Creates a new
| |
| getElitismRate | back to summary |
|---|---|
| public double getElitismRate() Access the elitism rate.
| |
| nextGeneration | back to summary |
|---|---|
| public Population nextGeneration() Implements org. Start the population for the next generation. The
| |
| setElitismRate | back to summary |
|---|---|
| public void setElitismRate(final double elitismRate) throws OutOfRangeException Sets the elitism rate, i.e. how many best chromosomes will be directly transferred to the next generation [in %].
| |