public class OrderTree extends GPProblem implements SimpleProblemForm
Parameters
| base.data classname, inherits or == ec.app.ordertree.OrderTreeData |
(the class for the prototypical GPData object for the OrderTree problem) |
Parameter bases
| base.data | species (the GPData object) |
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
CONTRIBUTION_EXPONENTIAL |
(package private) static int |
CONTRIBUTION_SQUARE |
(package private) static int |
CONTRIBUTION_UNIT |
(package private) static int |
CONTRIBUTION_VALUE |
(package private) double |
fitness |
(package private) int |
fitnessContributionType |
(package private) static String |
P_CONTRIBUTION_TYPE |
| Constructor and Description |
|---|
OrderTree() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
(package private) double |
fitnessContribution(double value,
EvolutionState state) |
(package private) void |
nodeCal(GPNode p,
EvolutionState state) |
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, describe, finishEvaluating, initializeContacts, prepareToEvaluate, reinitializeContactsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescribedouble fitness
static final String P_CONTRIBUTION_TYPE
static final int CONTRIBUTION_UNIT
static final int CONTRIBUTION_VALUE
static final int CONTRIBUTION_SQUARE
static final int CONTRIBUTION_EXPONENTIAL
int fitnessContributionType
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 SimpleProblemFormdouble fitnessContribution(double value,
EvolutionState state)
void nodeCal(GPNode p, EvolutionState state)
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.