MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
The deterministic sampling selection operator implementation. More...
Classes | |
class | ChromosomeFractionsComparer |
A comparer used by deterministic sampling selector for sorting chromosomes according to the decimal fractions of the expected chromosome's appearances in the mating pool. | |
Public Member Functions | |
CDeterministicSampling (CConfiguration configuration) | |
Instantiates a new deterministic sampling selector. | |
void | notify (CConfiguration configuration) |
Invoked when the genetic algorithm is about to be executed. | |
override void | select (CPopulation population, CPopulation matingPool, int toSelectCount) |
Selects a chromosome from the specified population according to its fitness. |
The deterministic sampling selection operator implementation.
MCScheduling.GeneticAlgorithm.CDeterministicSampling.CDeterministicSampling | ( | CConfiguration | configuration | ) |
Instantiates a new deterministic sampling selector.
configuration | The configuration of the genetic algorithm that will utilize this selector. |
NullReferenceException | If confuguration is null. |
void MCScheduling.GeneticAlgorithm.CDeterministicSampling.notify | ( | CConfiguration | configuration | ) |
Invoked when the genetic algorithm is about to be executed.
configuration | The configuration of the genetic algorithm that uses this selector. |
Implements MCScheduling.GeneticAlgorithm.IConfigurationDependent.
override void MCScheduling.GeneticAlgorithm.CDeterministicSampling.select | ( | CPopulation | population, |
CPopulation | matingPool, | ||
int | toSelectCount | ||
) | [virtual] |
Selects a chromosome from the specified population according to its fitness.
See the description of the algorithm in the description of this class.
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.CBaseSelectionOperator.