|
||||||||||
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 ec.cgp.problems.ProblemRegression
public class ProblemRegression
Regression problem.
Field Summary | |
---|---|
int |
function
Which function to use. |
(package private) static java.lang.String |
P_WHICH
|
(package private) static float[] |
testPoints
50 randomly generated test points used for fitness evaluation |
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 | |
---|---|
ProblemRegression()
|
Method Summary | |
---|---|
void |
evaluate(ec.EvolutionState state,
ec.Individual ind,
int subpopulation,
int threadnum)
Evaluate the CGP and compute fitness |
static float |
function1(float x)
Sixth-order polynomial. |
static float |
function2(float x)
Fifth-order polynomial. |
static float |
function3(float x)
Second-order polynomial. |
void |
setup(ec.EvolutionState state,
ec.util.Parameter base)
Initialize the evaluation cache, and configure the random constants. |
Methods inherited from class ec.cgp.problems.ProblemCGP |
---|
describe, initConstants |
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 int function
static java.lang.String P_WHICH
static float[] testPoints
Constructor Detail |
---|
public ProblemRegression()
Method Detail |
---|
public void evaluate(ec.EvolutionState state, ec.Individual ind, int subpopulation, int threadnum)
public static float function1(float x)
public static float function2(float x)
public static float function3(float x)
public void setup(ec.EvolutionState state, ec.util.Parameter base)
ProblemCGP
setup
in interface ec.Prototype
setup
in interface ec.Setup
setup
in class ProblemCGP
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |