$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, RunTimeParameters settings) |
Select p individuals at random. 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 36 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 91 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 178 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 112 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 p individuals at random.
The individual with the highest fitness becomes the parent. Keeping the tournament size small results in a smaller selection pressure, thus increasing genetic diversity. Note: this implementation is based on the WATCHMAKER framework http://watchmaker.uncommons.org/
eligibleParents | the ensemble of individuals to choose from |
sz | number of individuals to select |
settings | the program-specific settings. |
Definition at line 54 of file SelectionHelper.java.
References denoptim.graph.Candidate.getFitness(), denoptim.programs.RunTimeParameters.getRandomizer(), denoptim.utils.Randomizer.nextBoolean(), and denoptim.utils.Randomizer.randomlyChooseOne().
Referenced by denoptim.ga.EAUtils.selectBasedOnFitness().