
MOEA Framework 2.11 API Specification 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object org.moeaframework.core.operator.TwoPointCrossover
public class TwoPointCrossover
Twopoint crossover. Two crossover points are selected and all decision variables between the two points are swapped between the two parents. The two children resulting from this swapping are returned.
Constructor Summary  

TwoPointCrossover(double probability)
Constructs a twopoint crossover operator with the specified probability of applying this operator to solutions. 
Method Summary  

Solution[] 
evolve(Solution[] parents)
Evolves one or more parent solutions (specified by getArity ) and
produces one or more child solutions. 
int 
getArity()
Returns the number of solutions that must be supplied to the evolve method. 
double 
getProbability()
Returns the probability of applying this operator to solutions. 
Methods inherited from class java.lang.Object 

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Constructor Detail 

public TwoPointCrossover(double probability)
probability
 the probability of applying this operator to solutionsMethod Detail 

public double getProbability()
public Solution[] evolve(Solution[] parents)
Variation
getArity
) and
produces one or more child solutions. By contract, the parents must not
be modified. The copy constructor should be used to create copies of the
parents with these copies subsequently modified.
evolve
in interface Variation
parents
 the array of parent solutions
public int getArity()
Variation
evolve
method.
getArity
in interface Variation
evolve
method

MOEA Framework 2.11 API Specification 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 