|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectec.Problem
ec.cgp.problems.ProblemCGP
ec.cgp.problems.ProblemParity
public class ProblemParity
Even n-bit parity problem.
| Field Summary | |
|---|---|
static int |
NUM_BITS
Number of bits in this parity problem. |
| Fields inherited from class ec.cgp.problems.ProblemCGP |
|---|
constantMax, constantMin, constants, numConstants, P_CONSTANT_MAX, P_CONSTANT_MIN, P_CONSTANTS |
| Fields inherited from class ec.Problem |
|---|
P_PROBLEM |
| Constructor Summary | |
|---|---|
ProblemParity()
|
|
| Method Summary | |
|---|---|
void |
evaluate(ec.EvolutionState state,
ec.Individual ind,
int subpopulation,
int threadnum)
Evaluate the CGP and compute fitness. |
static int |
max()
Max value represented by this parity problem. |
| Methods inherited from class ec.cgp.problems.ProblemCGP |
|---|
describe, initConstants, setup |
| Methods inherited from class ec.Problem |
|---|
canEvaluate, clone, closeContacts, defaultBase, finishEvaluating, initializeContacts, prepareToEvaluate, reinitializeContacts |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int NUM_BITS
| Constructor Detail |
|---|
public ProblemParity()
| Method Detail |
|---|
public static int max()
public void evaluate(ec.EvolutionState state,
ec.Individual ind,
int subpopulation,
int threadnum)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||