public class SimpleEvaluator extends Evaluator
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
SimpleEvaluator.SimpleEvaluatorThread
A helper class for implementing multithreaded evaluation
|
| Modifier and Type | Field and Description |
|---|---|
static int |
C_AUTO |
(package private) int |
chunkSize |
boolean |
cloneProblem |
(package private) int |
individualCounter |
(package private) Object[] |
lock |
static int |
MERGE_BEST |
static int |
MERGE_MEAN |
static int |
MERGE_MEDIAN |
int |
mergeForm |
int |
numTests |
(package private) Population |
oldpop |
static String |
P_CHUNK_SIZE |
static String |
P_CLONE_PROBLEM |
static String |
P_MERGE |
static String |
P_NUM_TESTS |
ThreadPool |
pool |
(package private) int |
subPopCounter |
static String |
V_AUTO |
static String |
V_BEST |
static String |
V_MEAN |
static String |
V_MEDIAN |
masterproblem, P_IAMSLAVE, P_MASTERPROBLEM, p_problem, P_PROBLEM| Constructor and Description |
|---|
SimpleEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeChunkSizeForSubpopulation(EvolutionState state,
int subpop,
int threadnum) |
(package private) void |
contract(EvolutionState state) |
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.
|
(package private) void |
expand(EvolutionState state) |
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.
|
closeContacts, initializeContacts, reinitializeContactspublic static final String P_CLONE_PROBLEM
public static final String P_NUM_TESTS
public static final String P_MERGE
public static final String V_MEAN
public static final String V_MEDIAN
public static final String V_BEST
public static final String P_CHUNK_SIZE
public static final 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
Object[] lock
int individualCounter
int subPopCounter
int chunkSize
public static final int C_AUTO
public ThreadPool pool
Population oldpop
public void setup(EvolutionState state, Parameter base)
Setupvoid expand(EvolutionState state)
void contract(EvolutionState state)
public void evaluatePopulation(EvolutionState state)
evaluatePopulation in class Evaluatorpublic boolean runComplete(EvolutionState state)
runComplete in class Evaluatorprotected void evalPopChunk(EvolutionState state, int[] numinds, int[] from, int threadnum, SimpleProblemForm p)
int computeChunkSizeForSubpopulation(EvolutionState state, int subpop, int threadnum)
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.