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

A base class for implementation of a natural selector. More...

Inheritance diagram for MCScheduling.GeneticAlgorithm.CBaseSelectionOperator:
MCScheduling.GeneticAlgorithm.CGeneticOperator MCScheduling.GeneticAlgorithm.ISelectionOperator MCScheduling.GeneticAlgorithm.CDeterministicSampling MCScheduling.GeneticAlgorithm.CRandomTournamentSelector MCScheduling.GeneticAlgorithm.CRemainderStochasticSampling MCScheduling.GeneticAlgorithm.CRouletteWheelSelector MCScheduling.GeneticAlgorithm.CStochasticUniversalSampling

List of all members.

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.

Detailed Description

A base class for implementation of a natural selector.


Constructor & Destructor Documentation

MCScheduling.GeneticAlgorithm.CBaseSelectionOperator.CBaseSelectionOperator ( CConfiguration  configuration) [protected]

Creates and initializes the base selection operator.

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

Member Function Documentation

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.

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

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.ISelectionOperator.

Implemented in MCScheduling.GeneticAlgorithm.CDeterministicSampling, MCScheduling.GeneticAlgorithm.CRandomTournamentSelector, MCScheduling.GeneticAlgorithm.CRemainderStochasticSampling, MCScheduling.GeneticAlgorithm.CRouletteWheelSelector, and MCScheduling.GeneticAlgorithm.CStochasticUniversalSampling.

 All Classes Namespaces Functions Variables Properties