|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ec.Problem ec.cgp.problems.ProblemCGP
public abstract class ProblemCGP
A CGP Problem. Provides a single-threaded setup hook that initializes static objects used during evaluation, and provides storage for constants.
Field Summary | |
---|---|
(package private) static float |
constantMax
open upper bound for generated constants |
(package private) static float |
constantMin
closed lower bound for generated constants |
(package private) static float[] |
constants
Constants randomly initialized at setup for some problems. |
(package private) static int |
numConstants
number of constants to use |
(package private) static java.lang.String |
P_CONSTANT_MAX
|
(package private) static java.lang.String |
P_CONSTANT_MIN
|
(package private) static java.lang.String |
P_CONSTANTS
|
Fields inherited from class ec.Problem |
---|
P_PROBLEM |
Constructor Summary | |
---|---|
ProblemCGP()
|
Method Summary | |
---|---|
void |
describe(ec.Individual ind,
ec.EvolutionState state,
int subpopulation,
int threadnum,
int log,
int verbosity)
Currently does nothing except enforce the SimpleProblemForm contract. |
(package private) void |
initConstants(ec.EvolutionState state)
Initialize the random constants once before this run. |
void |
setup(ec.EvolutionState state,
ec.util.Parameter base)
Initialize the evaluation cache, and configure the random constants. |
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 |
Methods inherited from interface ec.simple.SimpleProblemForm |
---|
evaluate |
Field Detail |
---|
static float[] constants
static int numConstants
static float constantMin
static float constantMax
static java.lang.String P_CONSTANTS
static java.lang.String P_CONSTANT_MIN
static java.lang.String P_CONSTANT_MAX
Constructor Detail |
---|
public ProblemCGP()
Method Detail |
---|
public void describe(ec.Individual ind, ec.EvolutionState state, int subpopulation, int threadnum, int log, int verbosity)
describe
in interface ec.simple.SimpleProblemForm
public void setup(ec.EvolutionState state, ec.util.Parameter base)
setup
in interface ec.Prototype
setup
in interface ec.Setup
setup
in class ec.Problem
void initConstants(ec.EvolutionState state)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |