MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
A base class for implementation of a natural selector. More...
Public Member Functions | |
abstract void | select (CPopulation population, CPopulation matingPool, int toSelectCount) |
Selects chromosomes from the population that will continue to the next stage of the genetic algorithm: reproduction phase. | |
void | enforcePositiveFitnessScores (CPopulation population) |
Enforces positive fitness scores of the chromosomes in the specified population by adding the largest negative value to fitness scores of all the individuals of the population. | |
Protected Member Functions | |
CBaseSelectionOperator (CConfiguration configuration) | |
Creates and initializes the base selection operator. |
A base class for implementation of a natural selector.
MCScheduling.GeneticAlgorithm.CBaseSelectionOperator.CBaseSelectionOperator | ( | CConfiguration | configuration | ) | [protected] |
Creates and initializes the base selection operator.
configuration | The configuration of the genetic algorithm that will utilize this selector. |
NullReferenceException | If confuguration is null. |
void MCScheduling.GeneticAlgorithm.CBaseSelectionOperator.enforcePositiveFitnessScores | ( | CPopulation | population | ) |
Enforces positive fitness scores of the chromosomes in the specified population by adding the largest negative value to fitness scores of all the individuals of the population.
population | The concerned individuals. |
abstract void MCScheduling.GeneticAlgorithm.CBaseSelectionOperator.select | ( | CPopulation | population, |
CPopulation | matingPool, | ||
int | toSelectCount | ||
) | [pure virtual] |
Selects chromosomes from the population that will continue to the next stage of the genetic algorithm: reproduction phase.
This selection should be guided by the fitness values of the chromosomes, but that is up to the implementation of the selector.
population | The population the chromosome will be selected from. |
matingPool | The mating pool the chromosome will be inserted into. |
toSelectCount | The total number of chromosomes to select. |
Implements MCScheduling.GeneticAlgorithm.ISelectionOperator.
Implemented in MCScheduling.GeneticAlgorithm.CDeterministicSampling, MCScheduling.GeneticAlgorithm.CRandomTournamentSelector, MCScheduling.GeneticAlgorithm.CRemainderStochasticSampling, MCScheduling.GeneticAlgorithm.CRouletteWheelSelector, and MCScheduling.GeneticAlgorithm.CStochasticUniversalSampling.