public class SimpleEvaluator extends Evaluator
Modifier and Type | Field and Description |
---|---|
static int |
C_AUTO |
boolean |
cloneProblem |
static int |
MERGE_BEST |
static int |
MERGE_MEAN |
static int |
MERGE_MEDIAN |
int |
mergeForm |
int |
numTests |
static java.lang.String |
P_CHUNK_SIZE |
static java.lang.String |
P_CLONE_PROBLEM |
static java.lang.String |
P_MERGE |
static java.lang.String |
P_NUM_TESTS |
ThreadPool |
pool |
static java.lang.String |
V_AUTO |
static java.lang.String |
V_BEST |
static java.lang.String |
V_MEAN |
static java.lang.String |
V_MEDIAN |
masterproblem, P_IAMSLAVE, P_MASTERPROBLEM, p_problem, P_PROBLEM, runComplete
Constructor and Description |
---|
SimpleEvaluator() |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
java.lang.String |
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.
|
closeContacts, initializeContacts, postEvaluationGlobalUpdate, postEvaluationLocalUpdate, reinitializeContacts, setRunComplete
public static final java.lang.String P_CLONE_PROBLEM
public static final java.lang.String P_NUM_TESTS
public static final java.lang.String P_MERGE
public static final java.lang.String V_MEAN
public static final java.lang.String V_MEDIAN
public static final java.lang.String V_BEST
public static final java.lang.String P_CHUNK_SIZE
public static final java.lang.String V_AUTO
public static final int MERGE_MEAN
public static final int MERGE_MEDIAN
public static final int MERGE_BEST
public int numTests
public int mergeForm
public boolean cloneProblem
public static final int C_AUTO
public ThreadPool pool
public void setup(EvolutionState state, Parameter base)
Setup
public void evaluatePopulation(EvolutionState state)
evaluatePopulation
in class Evaluator
public java.lang.String runComplete(EvolutionState state)
runComplete
in class Evaluator
protected void evalPopChunk(EvolutionState state, int[] numinds, int[] from, int threadnum, SimpleProblemForm p)