|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.op.initialisation.RampedHalfAndHalfInitialiser<TYPE>
public class RampedHalfAndHalfInitialiser<TYPE>
Initialisation implementation which uses a combination of full and grow
initialisers to create an initial population of CandidatePrograms.
Depths are equally split between depths of 2 up to the maximum initial depth as specified by the model. Initialisation of individuals at each of these depths is then alternated between full and grow initialisers.
There will not always be an equal number of programs created to each depth, this will depend on if the population size is exactly divisible by the range of depths (initial maximum depth - 2). If the range of depths is greater than the population size then some depths will not occur at all in order to ensure as wide a spread of depths up to the maximum as possible.
| Constructor Summary | |
|---|---|
RampedHalfAndHalfInitialiser(GPModel<TYPE> model)
Construct a RampedHalfAndHalfInitialiser. |
|
| Method Summary | |
|---|---|
java.util.List<CandidateProgram<TYPE>> |
getInitialPopulation()
Will use grow initialisation on half the population and full on the other half. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RampedHalfAndHalfInitialiser(GPModel<TYPE> model)
model - The model being assessed| Method Detail |
|---|
public java.util.List<CandidateProgram<TYPE>> getInitialPopulation()
getInitialPopulation in interface Initialiser<TYPE>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||