$darkmode
DENOPTIM
|
Class that offers methods to performs fitness-driven selection of candidates. More...
Static Protected Member Functions | |
static Candidate[] | performTournamentSelection (List< Candidate > eligibleParents, int sz, GAParameters settings) |
Select a number individuals at random (i.e., tournamentSize). More... | |
static Candidate[] | performRandomSelection (List< Candidate > population, int sz, RunTimeParameters settings) |
Randomly select k individuals from the population. More... | |
static Candidate[] | performSUS (List< Candidate > population, int sz, RunTimeParameters settings) |
Stochastic Uniform Sampling Note: this implementation is based on the WATCHMAKER framework http://watchmaker.uncommons.org/. More... | |
static Candidate[] | performRWS (List< Candidate > population, int sz, RunTimeParameters settings) |
Roulette wheel selection is implemented as follows: More... | |
Class that offers methods to performs fitness-driven selection of candidates.
Definition at line 38 of file SelectionHelper.java.
|
staticprotected |
Randomly select k individuals from the population.
population | the ensemble of individuals to choose from. |
sz | number of individuals to select. |
settings | the program-specific settings. |
Definition at line 86 of file SelectionHelper.java.
References denoptim.programs.RunTimeParameters.getRandomizer(), and denoptim.utils.Randomizer.randomlyChooseOne().
Referenced by denoptim.ga.EAUtils.selectBasedOnFitness().
|
staticprotected |
Roulette wheel selection is implemented as follows:
population | the ensemble of individuals to choose from. |
sz | number of individuals to select. |
settings | the program-specific settings. |
Definition at line 173 of file SelectionHelper.java.
References denoptim.graph.Candidate.getFitness(), denoptim.programs.RunTimeParameters.getRandomizer(), and denoptim.utils.Randomizer.nextDouble().
Referenced by denoptim.ga.EAUtils.selectBasedOnFitness().
|
staticprotected |
Stochastic Uniform Sampling Note: this implementation is based on the WATCHMAKER framework http://watchmaker.uncommons.org/.
population | the ensemble of individuals to choose from. |
sz | number of individuals to select. |
settings | the program-specific settings. |
Definition at line 107 of file SelectionHelper.java.
References denoptim.programs.RunTimeParameters.getRandomizer(), and denoptim.utils.Randomizer.nextDouble().
Referenced by denoptim.ga.EAUtils.selectBasedOnFitness(), and denoptim.ga.SeelctionHelperTest.testPerformSUS().
|
staticprotected |
Select a number individuals at random (i.e., tournamentSize).
The individual with the highest fitness is chosen the parent. Keeping the tournament size small results in a smaller selection pressure, thus increasing genetic diversity.
eligibleParents | the ensemble of individuals to choose from |
sz | number of individuals to select |
tournamentSize | the number of candidates participating to each tournament. Corresponds to the selection pressure: high values make high fitness values be more likely to be selected. |
settings | the program-specific settings. |
Definition at line 57 of file SelectionHelper.java.
References denoptim.programs.RunTimeParameters.getRandomizer(), denoptim.programs.denovo.GAParameters.getSelectivePressure(), and denoptim.utils.Randomizer.randomlyChooseOne().
Referenced by denoptim.ga.EAUtils.selectBasedOnFitness().