|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProgramSelector<TYPE>
ProgramSelectors are for selecting an individual from a population of programs. Most selectors will choose an individual based in some way upon the fitness of the programs.
PoolSelector| Method Summary | |
|---|---|
CandidateProgram<TYPE> |
getProgram()
Select a CandidateProgram from the current population of
programs. |
void |
setSelectionPool(java.util.List<CandidateProgram<TYPE>> pop)
The GP system will call this method at the start of every generation to provide the selector with the population from which selections should be made. |
| Method Detail |
|---|
void setSelectionPool(java.util.List<CandidateProgram<TYPE>> pop)
pop - the current population for this generation.CandidateProgram<TYPE> getProgram()
CandidateProgram from the current population of
programs. The method of selection would normally be based upon the
fitness of the program but there is no need for it to be, and there are
exceptions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||