public class Edge extends GPProblem implements SimpleProblemForm
Parameters
| base.data classname, inherits or == ec.app.edge.EdgeData |
(the class for the prototypical GPData object for the Edge problem) |
Parameter bases
| base.data | species (the GPData object) |
| Modifier and Type | Field and Description |
|---|---|
boolean[] |
accept |
static int |
BAD |
int[][] |
epsilon |
static int |
EPSILON |
int[] |
epsilon_l |
int[] |
from |
boolean |
generalize |
static int |
J_CENTER |
static int |
J_LEFT |
static int |
J_RIGHT |
static int |
MIN_ARRAY_SIZE |
boolean[][] |
negA |
boolean[][] |
negT |
int |
numEdges |
int |
numNodes |
static String |
P_ALLNEG |
static String |
P_ALLPOS |
static String |
P_GENERALIZE |
static String |
P_MAXTEST |
static String |
P_TESTNEG |
static String |
P_TESTPOS |
boolean[][] |
posA |
boolean[][] |
posT |
int[] |
reading |
int[][] |
reading0 |
static int |
READING0 |
int[] |
reading0_l |
int[][] |
reading1 |
static int |
READING1 |
int[] |
reading1_l |
private static long |
serialVersionUID |
boolean[] |
start |
boolean[] |
state1 |
boolean[] |
state2 |
int[] |
to |
(package private) int |
totneg |
(package private) int |
totpos |
| Constructor and Description |
|---|
Edge() |
| Modifier and Type | Method and Description |
|---|---|
void |
describe(EvolutionState state,
Individual ind,
int subpopulation,
int threadnum,
int log)
Part of SimpleProblemForm.
|
String |
describeShortGeneralized(Individual ind,
EvolutionState state,
int subpopulation,
int threadnum) |
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.
|
static String |
fill(int num,
char c) |
void |
fullTest(EvolutionState state,
Individual ind,
int threadnum,
boolean[][] pos,
boolean[][] neg)
Tests an individual, returning its successful positives
in totpos and its successful negatives in totneg.
|
static String |
justify(String s,
int len,
int justification) |
void |
printBits(EvolutionState state,
boolean[][] bits) |
String |
printCurrentNFA() |
boolean[][] |
restrictToSize(int size,
boolean[][] cases,
EvolutionState state,
int thread) |
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.
|
boolean[][] |
slurp(InputStream f) |
boolean |
test(boolean[] sample) |
clone, defaultBasecanEvaluate, closeContacts, describe, finishEvaluating, initializeContacts, prepareToEvaluate, reinitializeContactsprivate static final long serialVersionUID
public static final String P_GENERALIZE
public static final String P_ALLPOS
public static final String P_ALLNEG
public static final String P_TESTPOS
public static final String P_TESTNEG
public static final String P_MAXTEST
public static final int MIN_ARRAY_SIZE
public static final int BAD
public static final int READING0
public static final int READING1
public static final int EPSILON
public boolean[] start
public boolean[] accept
public int numNodes
public int[] from
public int[] to
public int[] reading
public int numEdges
public int[][] reading1
public int[] reading1_l
public int[][] reading0
public int[] reading0_l
public int[][] epsilon
public int[] epsilon_l
public boolean[][] posT
public boolean[][] negT
public boolean[][] posA
public boolean[][] negA
public boolean[] state1
public boolean[] state2
public boolean generalize
public static final int J_LEFT
public static final int J_RIGHT
public static final int J_CENTER
int totpos
int totneg
public static String fill(int num, char c)
public String printCurrentNFA()
public boolean[][] restrictToSize(int size,
boolean[][] cases,
EvolutionState state,
int thread)
public boolean[][] slurp(InputStream f) throws IOException
IOExceptionpublic void printBits(EvolutionState state, boolean[][] bits)
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 boolean test(boolean[] sample)
public void fullTest(EvolutionState state, Individual ind, int threadnum, boolean[][] pos, boolean[][] neg)
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 Problempublic String describeShortGeneralized(Individual ind, EvolutionState state, int subpopulation, int threadnum)
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.