|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.algorithm.evaluate.SingleObjective
public class SingleObjective
An implementation of EvaluationStrategy
interface. This concrete
implementation is used when we have only one objective function to evaluate
and the fitness value of the individuals is the result of apply the objective
function to an individual.
The problem could have constraint functions that we evaluate in this
strategy.
Constructor Summary | |
---|---|
SingleObjective()
Creates a new instance of SingleObjective |
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
|
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 |
Constructor Detail |
---|
public SingleObjective()
Method Detail |
---|
public void evaluate(java.util.List<Individual> individuals, java.util.List<ObjectiveFunction> functions, java.util.List<Constraint> constraints)
evaluate
in interface EvaluationStrategy
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.public void evaluate(Individual individual, java.util.List<ObjectiveFunction> functions, java.util.List<Constraint> constraints)
evaluate
in interface EvaluationStrategy
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.
In this case we only have one function.constraints
- A list of constraints functions wich will be evaluate
with the individuals values.public void configure(org.apache.commons.configuration.Configuration conf)
configure
in interface Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |