es.udc.gii.common.eaf.algorithm.evaluate
Class SerialEvaluationStrategy

java.lang.Object
  extended by es.udc.gii.common.eaf.algorithm.evaluate.SerialEvaluationStrategy
All Implemented Interfaces:
EvaluationStrategy, Configurable, java.io.Serializable

public class SerialEvaluationStrategy
extends java.lang.Object
implements EvaluationStrategy, java.io.Serializable

This clas is an evaluation strategy for a monoprocessor environment.

This class is the responsible of evaluate the list of individuals with the list of objective functions and the list of constraints.

An instance of this class has an instance of the constraint handling method for the constrained problems ConstraintMethod.

Since:
1.0
Author:
Grupo Integrado de IngenierĂ­a (www.gii.udc.es)
See Also:
Serialized Form

Field Summary
private  ConstraintMethod contraintMethod
           
 
Constructor Summary
SerialEvaluationStrategy()
           
 
Method Summary
 void configure(org.apache.commons.configuration.Configuration conf)
          Configures the specific element that implements this method.
 void evaluate(Individual individual, java.util.List<ObjectiveFunction> functions, java.util.List<Constraint> constraints)
          This method is used to evaluate an individual with a list of objective functions and a list of constraints.
 void evaluate(java.util.List<Individual> individuals, java.util.List<ObjectiveFunction> functions, java.util.List<Constraint> constraints)
          This method is used to evaluate a list of individuals with a list of objective functions and a list of constraints.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contraintMethod

private ConstraintMethod contraintMethod
Constructor Detail

SerialEvaluationStrategy

public SerialEvaluationStrategy()
Method Detail

evaluate

public void evaluate(java.util.List<Individual> individuals,
                     java.util.List<ObjectiveFunction> functions,
                     java.util.List<Constraint> constraints)
This method is used to evaluate a list of individuals with a list of objective functions and a list of constraints.

Specified by:
evaluate in interface EvaluationStrategy
Parameters:
individuals - A list of individuals to be evaluated by the list of objective functions.
functions - An objective functions' list with wich we will evaluate the individuals' list.
constraints - A list of constraints functions wich will be evaluate with the individuals values.

evaluate

public void evaluate(Individual individual,
                     java.util.List<ObjectiveFunction> functions,
                     java.util.List<Constraint> constraints)
This method is used to evaluate an individual with a list of objective functions and a list of constraints.

Specified by:
evaluate in interface EvaluationStrategy
Parameters:
individuals - A list of individuals to be evaluated by the list of objective functions.
functions - An objective functions' list with wich we will evaluate the individuals' list.
constraints - A list of constraints functions wich will be evaluate with the individuals values.

configure

public void configure(org.apache.commons.configuration.Configuration conf)
Description copied from interface: Configurable
Configures the specific element that implements this method.

Specified by:
configure in interface Configurable
Parameters:
conf - a Configuration object.
See Also:
Configuration