MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
The remainder stochastic sampling selection operator implementation. More...
Public Member Functions | |
CRemainderStochasticSampling (CConfiguration configuration, bool withReplacement) | |
Instantiates a new deterministic sampling selector. | |
void | notify (CConfiguration configuration) |
Invoked when the genetic algorithm is about to be executed. | |
bool | isWithReplacement () |
Returns true if the selector is with replacement, otherwise, false. | |
override void | select (CPopulation population, CPopulation matingPool, int toSelectCount) |
Selects a chromosome from the specified population according to its fitness. |
The remainder stochastic sampling selection operator implementation.
MCScheduling.GeneticAlgorithm.CRemainderStochasticSampling.CRemainderStochasticSampling | ( | CConfiguration | configuration, |
bool | withReplacement | ||
) |
Instantiates a new deterministic sampling selector.
configuration | The configuration of the genetic algorithm that will utilize this selector. |
withReplacement | if true, the decimal fractions of the number of expected samples of each chromosome in the mating pool is used in weighted roulette wheel selection, if false, the fractions are treated as probabilities for selection. |
NullReferenceException | If confuguration is null. |
bool MCScheduling.GeneticAlgorithm.CRemainderStochasticSampling.isWithReplacement | ( | ) |
Returns true if the selector is with replacement, otherwise, false.
void MCScheduling.GeneticAlgorithm.CRemainderStochasticSampling.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.CRemainderStochasticSampling.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.