com.epochx.life
Interface ElitismListener<TYPE>

All Known Subinterfaces:
LifeCycleListener<TYPE>
All Known Implementing Classes:
CubicRegression, Even4Parity, Even5Parity, Even7Parity, GPAbstractModel, Majority5, Majority9, Multiplexer11Bit, Multiplexer20Bit, Multiplexer37Bit, Multiplexer6Bit, QuarticRegression, SantaFeTrail

public interface ElitismListener<TYPE>


Method Summary
 java.util.List<CandidateProgram<TYPE>> onElitism(java.util.List<CandidateProgram<TYPE>> elites)
          Called after selection of elites.
 

Method Detail

onElitism

java.util.List<CandidateProgram<TYPE>> onElitism(java.util.List<CandidateProgram<TYPE>> elites)
Called after selection of elites. If the number of elites to use is set by the model to <=0, then this method will still be called at the appropriate time, but with an empty list.

Parameters:
elites - the selection of chosen elites.
Returns:
a List of CandidatePrograms to use as the set of elites. Note that it is not appropriate to return a value of null and this will cause undefined behaviour.