eaLib API Docs
Last Modified : January 7 2002

mss.ea.eval
Class FitnessScaling

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.eval.FitnessScaling
All Implemented Interfaces:
SingleStreamProcessor, StreamProcessor
Direct Known Subclasses:
ExponentialScaling, LinearRankingScaling, LinearScaling, LogarithmicScaling, NonLinearRankingScaling, ReciprocalScaling

public abstract class FitnessScaling
extends GeneticOperator
implements SingleStreamProcessor

Abstract base class for fitness scaling.

Since:
0.1
Version:
$Revision: 1.10 $ $Date: 2001/11/28 15:47:11 $
Author:
Andreas Rummler

Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
FitnessScaling()
          Constructor.
 
Method Summary
abstract  Fitness evaluate(Individual i)
          Evaluates the fitness of an individual.
 IndividualStream process(IndividualStream is)
          Evaluates all individuals contained in a stream.
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mss.ea.core.StreamProcessor
getName
 

Constructor Detail

FitnessScaling

public FitnessScaling()
Constructor.
Method Detail

evaluate

public abstract Fitness evaluate(Individual i)
                          throws FitnessScalingException
Evaluates the fitness of an individual. The fitness could be calculated based on the parameters of the individual or it's ranking inside the population or based on other factors. This method must not append the fitness to the individual, this is already done by the process methods.
Parameters:
i - individual for evaluation
Returns:
fitness of the individual
Throws:
FitnessScalingException - in case the evaluation fails

process

public IndividualStream process(IndividualStream is)
                         throws FitnessScalingException
Evaluates all individuals contained in a stream.
Specified by:
process in interface SingleStreamProcessor
Parameters:
is - stream with individuals to be evaluated
Returns:
stream with evaluated individuals
Throws:
FitnessScalingException - in case the evaluation fails

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS