public class TwoBox extends GPProblem implements SimpleProblemForm
Parameters
| base.data classname, inherits or == ec.app.twobox.TwoBoxData |
(the class for the prototypical GPData object for the TwoBox problem) |
| base.size int >= 1 |
(the size of the training set) |
| base.range int >= 1 |
(the range of dimensional values in the training set -- they'll be integers 1...range inclusive) |
Parameter bases
| base.data | species (the GPData object) |
| Modifier and Type | Field and Description |
|---|---|
int |
currentIndex |
double[] |
inputsh0 |
double[] |
inputsh1 |
double[] |
inputsl0 |
double[] |
inputsl1 |
double[] |
inputsw0 |
double[] |
inputsw1 |
double[] |
outputs |
static String |
P_RANGE |
static String |
P_SIZE |
int |
range |
private static long |
serialVersionUID |
int |
trainingSetSize |
| Constructor and Description |
|---|
TwoBox() |
| 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.
|
double |
func(double l0,
double w0,
double h0,
double l1,
double w1,
double h1) |
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, waitdescribeprivate static final long serialVersionUID
public static final String P_SIZE
public static final String P_RANGE
public int currentIndex
public int trainingSetSize
public int range
public double[] inputsl0
public double[] inputsw0
public double[] inputsh0
public double[] inputsl1
public double[] inputsw1
public double[] inputsh1
public double[] outputs
public final double func(double l0,
double w0,
double h0,
double l1,
double w1,
double h1)
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 SimpleProblemFormCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.