ec.simple
Class StarEvaluator
java.lang.Object
ec.Evaluator
ec.simple.SimpleEvaluator
ec.simple.StarEvaluator
- All Implemented Interfaces:
- java.io.Serializable, Setup, Singleton
- public class StarEvaluator
- extends SimpleEvaluator
The StarEvaluator 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.
- See Also:
- Serialized Form
Method Summary |
void |
evalStarPopChunk(EvolutionState state,
int[] numinds,
int[] from,
int threadnum,
SimpleProblemForm p,
int max_inds,
java.lang.String client_name,
java.net.Socket eval_socket)
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. |
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. |
void |
setupServer(EvolutionState state)
Set up the server for the Star Evaluator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
P_STAR_NODES
public static final java.lang.String P_STAR_NODES
- See Also:
- Constant Field Values
P_STAR_NODE
public static final java.lang.String P_STAR_NODE
- See Also:
- Constant Field Values
P_STAR_CLIENT
public static final java.lang.String P_STAR_CLIENT
- See Also:
- Constant Field Values
P_SUBPOP
public static final java.lang.String P_SUBPOP
- See Also:
- Constant Field Values
StarEvaluator
public StarEvaluator()
setup
public void setup(EvolutionState state,
Parameter base)
- Description copied from interface:
Setup
- Sets up the object by reading it from the parameters stored
in state, built off of the parameter base base.
If an ancestor implements this method, be sure to call
super.setup(state,base); before you do anything else.
- Specified by:
setup
in interface Setup
- Overrides:
setup
in class 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 SimpleEvaluator
evalStarPopChunk
public void evalStarPopChunk(EvolutionState state,
int[] numinds,
int[] from,
int threadnum,
SimpleProblemForm p,
int max_inds,
java.lang.String client_name,
java.net.Socket eval_socket)
- 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.
setupServer
public void setupServer(EvolutionState state)
- Set up the server for the Star Evaluator