public class Lid extends GPProblem implements SimpleProblemForm
Parameters
| base.data classname, inherits or == ec.app.lid.LidData |
(the class for the prototypical GPData object for the Lid problem) |
Parameter bases
| base.data | species (the GPData object) |
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
actualDepth |
(package private) int |
actualTerminals |
(package private) int |
maxWeight |
(package private) static String |
P_TARGET_DEPTH |
(package private) static String |
P_TARGET_TERMINALS |
(package private) static String |
P_WEIGHT_DEPTH |
(package private) int |
targetDepth |
(package private) int |
targetTerminals |
(package private) int |
weightDepth |
(package private) int |
weightTerminals |
| Constructor and Description |
|---|
Lid() |
| Modifier and Type | Method and Description |
|---|---|
void |
describe(EvolutionState state,
Individual ind,
int subpopulation,
int threadnum,
int log)
Part of SimpleProblemForm.
|
void |
evaluate(EvolutionState state,
Individual ind,
int subpopulation,
int threadnum)
Evaluates the individual in ind, if necessary (perhaps
not evaluating them if their evaluated flags are true),
and sets their fitness appropriately.
|
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.
|
clone, defaultBasecanEvaluate, closeContacts, describe, finishEvaluating, initializeContacts, prepareToEvaluate, reinitializeContactsstatic final String P_TARGET_DEPTH
static final String P_TARGET_TERMINALS
static final String P_WEIGHT_DEPTH
int maxWeight
int targetDepth
int targetTerminals
int actualDepth
int actualTerminals
int weightDepth
int weightTerminals
public void setup(EvolutionState state, Parameter base)
PrototypeFor prototypes, setup(...) is typically called once for the prototype instance; cloned instances do not receive the setup(...) call. setup(...) may be called more than once; the only guarantee is that it will get called at least once on an instance or some "parent" object from which it was ultimately cloned.
public void evaluate(EvolutionState state, Individual ind, int subpopulation, int threadnum)
SimpleProblemFormevaluate in interface SimpleProblemFormpublic void describe(EvolutionState state, Individual ind, int subpopulation, int threadnum, int log)
Problemdescribe in interface SimpleProblemFormdescribe in class ProblemCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.