public class Multiplexer extends GPProblem implements SimpleProblemForm
Parameters
| base.data classname, inherits or == ec.app.multiplexer.MultiplexerData |
(the class for the prototypical GPData object for the Multiplexer problem) |
| base.bits 1, 2, or 3 |
(The number of address bits (1 == 3-multiplexer, 2 == 6-multiplexer, 3==11-multiplexer) |
Parameter bases
| base.data | species (the GPData object) |
| Modifier and Type | Field and Description |
|---|---|
int |
addressPart |
int |
amax |
int |
bits |
int |
dataPart |
int |
dmax |
static int |
NUMINPUTS |
static String |
P_NUMBITS |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
Multiplexer() |
| 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.
|
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 int NUMINPUTS
public static final String P_NUMBITS
public int bits
public int amax
public int dmax
public int addressPart
public int dataPart
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.