MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Public Member Functions
MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator Class Reference

Evaluates the chromosome representing a schedule for a mixed-criticality instance according to its total lateness and maximum completion time, i.e. More...

Inheritance diagram for MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator:
MCScheduling.GeneticAlgorithm.IFitnessEvaluator MCScheduling.GeneticAlgorithm.IConfigurationDependent

List of all members.

Public Member Functions

 CMinimizeMakespanFitnessEvaluator ()
 Creates the CMinimizeMakespanFitnessEvaluator with makespan and lateness factors set to 0.5.
 CMinimizeMakespanFitnessEvaluator (double makespanFactor, double latenessFactor)
 Creates the CMinimizeMakespanFitnessEvaluator for the specified lateness, makespan weighting factor.
double getMakespanFactor ()
 Returns the makespan factor.
void setMakespanFactor (double makespanFactor)
 Sets the makespan factor.
double getLatenessFactor ()
 Returns the lateness factor.
void setLatenessFactor (double latenessFactor)
 Sets the lateness factor.
void notify (CConfiguration configuration)
 Invoked when the genetic algorithm that uses this operator is about to be executed.
void evaluate (IChromosome c)
 Evaluate the specified individual which represents a schedule of associated mixed-criticality instance.
void evaluate (CPopulation population)
 Evaluates the population of schedules according to their total lateness and makespan.

Detailed Description

Evaluates the chromosome representing a schedule for a mixed-criticality instance according to its total lateness and maximum completion time, i.e.

the schedule's makespan.


Constructor & Destructor Documentation

MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.CMinimizeMakespanFitnessEvaluator ( double  makespanFactor,
double  latenessFactor 
)

Creates the CMinimizeMakespanFitnessEvaluator for the specified lateness, makespan weighting factor.

Parameters:
makespanFactorThe weight of makespan.
latenessFactorThe weight of lateness.

Member Function Documentation

void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.evaluate ( IChromosome  c)

Evaluate the specified individual which represents a schedule of associated mixed-criticality instance.

The evaluation is base on the total lateness and makespan of the schedule - the fittest individuals has got the lateness equal to zero and the makespan as small as possible.

Parameters:
cThe individual - schedule to be evaluated.

Implements MCScheduling.GeneticAlgorithm.IFitnessEvaluator.

void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.evaluate ( CPopulation  population)

Evaluates the population of schedules according to their total lateness and makespan.

Parameters:
populationThe population of chromosomes - schedules to be evaluated.
See also:
this.evaluate(IChromosome)

Implements MCScheduling.GeneticAlgorithm.IFitnessEvaluator.

double MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.getLatenessFactor ( )

Returns the lateness factor.

Returns:
The lateness factor.
double MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.getMakespanFactor ( )

Returns the makespan factor.

Returns:
The makespan factor.
void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.notify ( CConfiguration  configuration)

Invoked when the genetic algorithm that uses this operator is about to be executed.

Parameters:
configurationThe configuration the operator depends on.

Implements MCScheduling.GeneticAlgorithm.IConfigurationDependent.

void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.setLatenessFactor ( double  latenessFactor)

Sets the lateness factor.

Parameters:
latenessFactorThe new lateness factor value.
void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.setMakespanFactor ( double  makespanFactor)

Sets the makespan factor.

Parameters:
makespanFactorThe new makespan factor value.
 All Classes Namespaces Functions Variables Properties