MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Classes | Public Member Functions
MCScheduling.GeneticAlgorithm.CDeterministicSampling Class Reference

The deterministic sampling selection operator implementation. More...

Inheritance diagram for MCScheduling.GeneticAlgorithm.CDeterministicSampling:
MCScheduling.GeneticAlgorithm.CBaseSelectionOperator MCScheduling.GeneticAlgorithm.IConfigurationDependent MCScheduling.GeneticAlgorithm.CGeneticOperator MCScheduling.GeneticAlgorithm.ISelectionOperator

List of all members.

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.

Detailed Description

The deterministic sampling selection operator implementation.

Author:
Tomas Tunys

Constructor & Destructor Documentation

MCScheduling.GeneticAlgorithm.CDeterministicSampling.CDeterministicSampling ( CConfiguration  configuration)

Instantiates a new deterministic sampling selector.

Parameters:
configurationThe configuration of the genetic algorithm that will utilize this selector.
Exceptions:
NullReferenceExceptionIf confuguration is null.

Member Function Documentation

void MCScheduling.GeneticAlgorithm.CDeterministicSampling.notify ( CConfiguration  configuration)

Invoked when the genetic algorithm is about to be executed.

Parameters:
configurationThe 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.

Parameters:
populationThe population the chromosome will be selected from.
matingPoolThe mating pool the chromosome will be inserted into.
toSelectCountThe total number of chromosomes to select.

Implements MCScheduling.GeneticAlgorithm.CBaseSelectionOperator.

 All Classes Namespaces Functions Variables Properties