
MOEA Framework 2.4 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.AdaptiveMultimethodVariation
public class AdaptiveMultimethodVariation
Autoadaptive multimethod recombination operator. Applies operators with probabilities proportional to the number of offspring produced by each operator in the archive.
Field Summary  

static String 
OPERATOR_ATTRIBUTE
The attribute for the operator index. 
Constructor Summary  

AdaptiveMultimethodVariation(Population archive)
Constructs an autoadaptive multimethod recombination operator with the specified archive for updating probabilities. 
Method Summary  

void 
addOperator(Variation operator)
Adds an operator to be used in the autoadaptive multimethod recombination. 
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. 
int 
getNumberOfOperators()
Returns the number of available operators. 
Variation 
getOperator(int index)
Returns the operator at the specified index. 
protected double[] 
getOperatorProbabilities()
Returns the array of probabilities of applying each operator. 
double 
getOperatorProbability(int index)
Returns the probability that the operator at the specified index is applied. 
int 
getUpdateWindow()
Returns the number of invocations of the evolve method between
updating the operator selection probabilities. 
protected int 
selectOperator()
Returns the index of one of the available operators randomly selected using the probabilities. 
Methods inherited from class java.lang.Object 

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

public static final String OPERATOR_ATTRIBUTE
Constructor Detail 

public AdaptiveMultimethodVariation(Population archive)
archive
 the archive used to update the probabilitiesMethod Detail 

public int getUpdateWindow()
evolve
method between
updating the operator selection probabilities.
evolve
method between
updating the operator selection probabilitiespublic void addOperator(Variation operator)
operator
 the operatorpublic int getNumberOfOperators()
public Variation getOperator(int index)
index
 the index of the operator to be returned
public double getOperatorProbability(int index)
index
 the index of the operator whose probability is returned
protected double[] getOperatorProbabilities()
protected int selectOperator()
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.4 API Specification 

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