|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ec.Evaluator | +--ec.simple.SimpleEvaluator
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. The Problem must implement SimpleProblemForm.
Field Summary |
Fields inherited from class ec.Evaluator |
p_problem, P_PROBLEM |
Constructor Summary | |
SimpleEvaluator()
|
Method Summary | |
void |
evalPopChunk(EvolutionState state,
int[] numinds,
int[] from,
int threadnum,
SimpleProblemForm 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. |
void |
setup(EvolutionState state,
Parameter base)
Sets up the object by reading it from the parameters stored in state, built off of the parameter base base. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleEvaluator()
Method Detail |
public void setup(EvolutionState state, Parameter base)
Setup
setup
in interface Setup
setup
in class Evaluator
public void evaluatePopulation(EvolutionState state)
evaluatePopulation
in class Evaluator
public void evalPopChunk(EvolutionState state, int[] numinds, int[] from, int threadnum, SimpleProblemForm p)
public boolean runComplete(EvolutionState state)
runComplete
in class Evaluator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |