|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectec.EvolutionState
ec.steadystate.SteadyStateEvolutionState
public class SteadyStateEvolutionState
| Field Summary | |
|---|---|
long |
evaluations
How many evaluations have we run so far? |
protected boolean |
firstTime
First time calling evolve |
boolean |
generationBoundary
Did we just start a new generation? |
int |
generationSize
how big is a generation? Set to the size of subpopulation 0 of the initial population. |
protected int[] |
individualCount
How many individuals have we added to the initial population? |
protected java.util.HashMap[] |
individualHash
Hash table to check for duplicate individuals |
long |
numEvaluations
How many evaluations should we run for? If set to UNDEFINED (0), we run for the number of generations instead. |
static java.lang.String |
P_NUMEVALUATIONS
|
static java.lang.String |
P_STEADYSTATE
base parameter for steady-state |
static long |
UNDEFINED
|
protected int |
whichSubpop
Holds which subpopulation we are currently operating on |
| Constructor Summary | |
|---|---|
SteadyStateEvolutionState()
|
|
| Method Summary | |
|---|---|
int |
evolve()
|
void |
finish(int result)
|
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. |
void |
startFresh()
|
| Methods inherited from class ec.EvolutionState |
|---|
performCheckpoint, resetFromCheckpoint, run, startFromCheckpoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String P_STEADYSTATE
public static final java.lang.String P_NUMEVALUATIONS
public boolean generationBoundary
public long numEvaluations
public static long UNDEFINED
public int generationSize
public long evaluations
protected int[] individualCount
protected java.util.HashMap[] individualHash
protected int whichSubpop
protected boolean firstTime
| Constructor Detail |
|---|
public SteadyStateEvolutionState()
| Method Detail |
|---|
public void setup(EvolutionState state,
Parameter base)
Setup
setup in interface Setupsetup in class EvolutionStatepublic void startFresh()
startFresh in class EvolutionStatepublic int evolve()
evolve in class EvolutionStatepublic void finish(int result)
finish in class EvolutionStateresult -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||