ec.simple
Class SimpleEvaluator
- java.lang.Object
-
- ec.Evaluator
-
- ec.simple.SimpleEvaluator
-
- Direct Known Subclasses:
- DEEvaluator, NSGA2Evaluator, SPEA2Evaluator, 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. The Problem must implement SimpleProblemForm.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intC_AUTObooleancloneProblemstatic intMERGE_BESTstatic intMERGE_MEANstatic intMERGE_MEDIANintmergeFormintnumTestsstatic java.lang.StringP_CHUNK_SIZEstatic java.lang.StringP_CLONE_PROBLEMstatic java.lang.StringP_MERGEstatic java.lang.StringP_NUM_TESTSThreadPoolpoolstatic java.lang.StringV_AUTOstatic java.lang.StringV_BESTstatic java.lang.StringV_MEANstatic java.lang.StringV_MEDIAN-
Fields inherited from class ec.Evaluator
masterproblem, P_IAMSLAVE, P_MASTERPROBLEM, p_problem, P_PROBLEM
-
-
Constructor Summary
Constructors Constructor and Description SimpleEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidevaluatePopulation(EvolutionState state)A simple evaluator that doesn't do any coevolutionary evaluation.booleanrunComplete(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.voidsetup(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 ec.Evaluator
closeContacts, initializeContacts, reinitializeContacts
-
-
-
-
Field Detail
-
P_CLONE_PROBLEM
public static final java.lang.String P_CLONE_PROBLEM
- See Also:
- Constant Field Values
-
P_NUM_TESTS
public static final java.lang.String P_NUM_TESTS
- See Also:
- Constant Field Values
-
P_MERGE
public static final java.lang.String P_MERGE
- See Also:
- Constant Field Values
-
V_MEAN
public static final java.lang.String V_MEAN
- See Also:
- Constant Field Values
-
V_MEDIAN
public static final java.lang.String V_MEDIAN
- See Also:
- Constant Field Values
-
V_BEST
public static final java.lang.String V_BEST
- See Also:
- Constant Field Values
-
P_CHUNK_SIZE
public static final java.lang.String P_CHUNK_SIZE
- See Also:
- Constant Field Values
-
V_AUTO
public static final java.lang.String V_AUTO
- See Also:
- Constant Field Values
-
MERGE_MEAN
public static final int MERGE_MEAN
- See Also:
- Constant Field Values
-
MERGE_MEDIAN
public static final int MERGE_MEDIAN
- See Also:
- Constant Field Values
-
MERGE_BEST
public static final int MERGE_BEST
- See Also:
- Constant Field Values
-
numTests
public int numTests
-
mergeForm
public int mergeForm
-
cloneProblem
public boolean cloneProblem
-
C_AUTO
public static final int C_AUTO
- See Also:
- Constant Field Values
-
pool
public ThreadPool pool
-
-
Method Detail
-
setup
public void setup(EvolutionState state, Parameter base)
Description copied from interface:SetupSets 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.
-
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.- Specified by:
evaluatePopulationin classEvaluator
-
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.- Specified by:
runCompletein classEvaluator
-
-
DMelt 3.0 © DataMelt by jWork.ORG