|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.BaseGeneticOperator
org.jgap.impl.InversionOperator
public class InversionOperator
The inversion operator randomly selects one chromosomes from the population and inverses it by randomly picking a splitting locus on which to swap the first part with the last part of the chromosome.
| Field Summary |
|---|
| Fields inherited from class org.jgap.BaseGeneticOperator |
|---|
m_monitor, m_monitorActive |
| Constructor Summary | |
|---|---|
InversionOperator()
Default constructor. |
|
InversionOperator(Configuration a_config)
Constructs a new instance of this operator. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object a_other)
Compares the given GeneticOperator to this GeneticOperator. |
void |
operate(Population a_population,
java.util.List a_candidateChromosomes)
The operate method will be invoked on each of the genetic operators referenced by the current Configuration object during the evolution phase. |
| Methods inherited from class org.jgap.BaseGeneticOperator |
|---|
equals, getConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InversionOperator()
throws InvalidConfigurationException
Attention: The configuration used is the one set with the static method Genotype.setConfiguration.
InvalidConfigurationException
public InversionOperator(Configuration a_config)
throws InvalidConfigurationException
a_config - the configuration to use
InvalidConfigurationException| Method Detail |
|---|
public void operate(Population a_population,
java.util.List a_candidateChromosomes)
GeneticOperator
a_population - the population to operate ona_candidateChromosomes - resulting chromosomespublic int compareTo(java.lang.Object a_other)
a_other - the instance against which to compare this instance
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||