|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectec.EvolutionState
ec.steadystate.SteadyStateEvolutionState
com.parabon.ec.steadystate.SteadyStateEvolutionState
public class SteadyStateEvolutionState
ORIGIN steady-state and opportunistic evolution state.
| Field Summary | |
|---|---|
protected boolean |
didFlush_
Ensure that the entire initial population is launched. |
protected boolean |
flushAtMax_
Flush whenever the max number of individuals evaluating is reached. |
protected static org.apache.commons.logging.Log |
log
|
protected int |
maxIndsEvaluating_
|
protected int |
maxIndsToCreate_
|
protected int |
numIndsCreated_
Number of new individuals created |
protected int |
numIndsEvaluating_
Number of individuals currently being evaluated in all active tasks. |
protected float |
overgeneratePercent_
|
static java.lang.String |
P_MAX_EVALUATING
Max number of individuals that can be in the process of asynchronous evaluation |
static java.lang.String |
P_OVERGENERATE_PERCENT
Additional individuals to generate beyond population size |
static java.lang.String |
P_PREF_JOBS
Preferred number of individuals to be executed by each slave task. |
static long |
POLL_TIMEOUT_MSEC
Poll interval for returning tasks. |
protected int |
populationSize_
Total number of individuals in all subpopulations. |
protected int |
prefJobsPerSlave_
|
| Fields inherited from class ec.steadystate.SteadyStateEvolutionState |
|---|
evaluations, firstTime, generationBoundary, generationSize, individualCount, individualHash, numEvaluations, P_NUMEVALUATIONS, P_STEADYSTATE, UNDEFINED, whichSubpop |
| Constructor Summary | |
|---|---|
SteadyStateEvolutionState()
|
|
| Method Summary | |
|---|---|
int |
evolve()
Sends individuals to be evaluated and collects evaluation results. |
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()
|
void |
startFromCheckpoint()
Resets the number of individuals currently evaluating after a checkpoint. |
| Methods inherited from class ec.EvolutionState |
|---|
performCheckpoint, resetFromCheckpoint, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
public static final java.lang.String P_MAX_EVALUATING
public static final java.lang.String P_OVERGENERATE_PERCENT
public static final java.lang.String P_PREF_JOBS
public static final long POLL_TIMEOUT_MSEC
protected int maxIndsEvaluating_
protected int numIndsEvaluating_
protected int numIndsCreated_
protected int prefJobsPerSlave_
protected boolean didFlush_
protected boolean flushAtMax_
protected int populationSize_
protected float overgeneratePercent_
protected int maxIndsToCreate_
| Constructor Detail |
|---|
public SteadyStateEvolutionState()
| Method Detail |
|---|
public void setup(EvolutionState state,
Parameter base)
Setup
setup in interface Setupsetup in class SteadyStateEvolutionStatepublic void startFresh()
startFresh in class SteadyStateEvolutionStatepublic void startFromCheckpoint()
transient, but this would change the serialization
format.
startFromCheckpoint in class EvolutionStatepublic int evolve()
evolve in class SteadyStateEvolutionStatepublic void finish(int result)
finish in class SteadyStateEvolutionStateresult -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||