|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.op.crossover.UniformPointCrossover<TYPE>
public class UniformPointCrossover<TYPE>
This class implements standard crossover with uniform swap points.
| Constructor Summary | |
|---|---|
UniformPointCrossover(GPModel<TYPE> model)
|
|
| Method Summary | |
|---|---|
CandidateProgram<TYPE>[] |
crossover(CandidateProgram<TYPE> program1,
CandidateProgram<TYPE> program2)
Crossover the two CandidatePrograms provided as arguments
using uniform swap points. |
void |
onGenerationStart()
Called at the start of each generation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniformPointCrossover(GPModel<TYPE> model)
| Method Detail |
|---|
public CandidateProgram<TYPE>[] crossover(CandidateProgram<TYPE> program1,
CandidateProgram<TYPE> program2)
CandidatePrograms provided as arguments
using uniform swap points. Random crossover points are chosen at random
in both programs, the genetic material at the points are then exchanged.
The resulting programs are returned as new CandidateProgram objects.
crossover in interface Crossover<TYPE>program1 - The first CandidateProgram selected to undergo uniform
point crossover.program2 - The second CandidateProgram selected to undergo uniform
point crossover.
public void onGenerationStart()
GenerationListener
onGenerationStart in interface GenerationListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||