ec.simple
Class SimpleEvaluator
java.lang.Object
|
+--ec.Evaluator
|
+--ec.simple.SimpleEvaluator
- Direct Known Subclasses:
- SteadyStateEvaluator
- public class SimpleEvaluator
- extends Evaluator
The SimpleEvaluator is a simple, non-coevolved generational evaluator which
evaluates every single member of every subpopulation individually in its
own problem space. One Problem instance is cloned from p_problem for
each evaluating thread.
- See Also:
- Serialized Form
Method Summary |
void |
evalPopChunk(EvolutionState state,
int[] numinds,
int[] from,
int threadnum,
Problem p)
A private helper function for evaluatePopulation which evaluates a chunk
of individuals in a subpopulation for a given thread. |
void |
evaluatePopulation(EvolutionState state)
A simple evaluator that doesn't do any coevolutionary
evaluation. |
boolean |
runComplete(EvolutionState state)
The SimpleEvaluator determines that a run is complete by asking
each individual in each population if he's optimal; if he
finds an individual somewhere that's optimal,
he signals that the run is complete. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SimpleEvaluator
public SimpleEvaluator()
evaluatePopulation
public void evaluatePopulation(EvolutionState state)
- A simple evaluator that doesn't do any coevolutionary
evaluation. Basically it applies evaluation pipelines,
one per thread, to various subchunks of a new population.
- Overrides:
- evaluatePopulation in class Evaluator
evalPopChunk
public void evalPopChunk(EvolutionState state,
int[] numinds,
int[] from,
int threadnum,
Problem p)
- A private helper function for evaluatePopulation which evaluates a chunk
of individuals in a subpopulation for a given thread.
Although this method is declared
public (for the benefit of a private helper class in this file),
you should not call it.
runComplete
public boolean runComplete(EvolutionState state)
- The SimpleEvaluator determines that a run is complete by asking
each individual in each population if he's optimal; if he
finds an individual somewhere that's optimal,
he signals that the run is complete.
- Overrides:
- runComplete in class Evaluator