|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.gp.CrossMethod
org.jgap.gp.impl.BranchTypingCross
public class BranchTypingCross
Crossing over for GP ProgramChromosomes.
| Constructor Summary | |
|---|---|
BranchTypingCross(GPConfiguration a_config)
Standard constructor. |
|
BranchTypingCross(GPConfiguration a_config,
boolean a_simpleChromosomeSelection)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object a_other)
The compareTo-method. |
protected ProgramChromosome[] |
doCross(ProgramChromosome a_c0,
ProgramChromosome a_c1)
Crosses two chromsomes using branch-typing. |
boolean |
equals(java.lang.Object a_other)
The equals-method. |
IGPProgram[] |
operate(IGPProgram a_i1,
IGPProgram a_i2)
Crosses two individuals. |
| Methods inherited from class org.jgap.gp.CrossMethod |
|---|
getConfiguration |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BranchTypingCross(GPConfiguration a_config)
a_config - the configuration to use
public BranchTypingCross(GPConfiguration a_config,
boolean a_simpleChromosomeSelection)
a_config - the configuration to usea_simpleChromosomeSelection - true: plainly select chromosomes,
false: select chromosomes proportionally to their size (=number of nodes
within a chromosome)| Method Detail |
|---|
public IGPProgram[] operate(IGPProgram a_i1,
IGPProgram a_i2)
operate in class CrossMethoda_i1 - the first individual to crossa_i2 - the second individual to cross
protected ProgramChromosome[] doCross(ProgramChromosome a_c0,
ProgramChromosome a_c1)
throws InvalidConfigurationException
a_c0 - the first chromosome to crossa_c1 - the second chromosome to cross
InvalidConfigurationExceptionpublic int compareTo(java.lang.Object a_other)
compareTo in interface java.lang.Comparablea_other - the other object to compare
public boolean equals(java.lang.Object a_other)
equals in class java.lang.Objecta_other - the other object to compare
public java.lang.Object clone()
clone in class java.lang.Object
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||