|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.core.operator.CompoundVariation
public class CompoundVariation
Construct a variation operator applying one or more variations sequentially. This construct is used to support mixed-type decision variables; however, this requires that the variation operators are type safe. Type safe variation operates only on supported types and ignores unsupported types.
CompoundVariation provides the following behavior:
K offspring and the current
operator requires K parents, the current operator is applied
normally. The current operator may produce any number of offspring.
K offspring and the current
operator requires 1 parent, the current operator is applied to each
offspring individually. The current operator may produce any number of
offspring, but only the first offspring will be retained.
| Constructor Summary | |
|---|---|
CompoundVariation()
Constructs a compound variation operator with no variation operators. |
|
CompoundVariation(Variation... operators)
Constructs a compound variation operator with the specified variation operators. |
|
| Method Summary | |
|---|---|
void |
appendOperator(Variation variation)
Appends the specified variation operator to this compound operator. |
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. |
String |
getName()
Returns the name of this variation operator. |
void |
setName(String name)
Sets the name of this variation operator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundVariation()
public CompoundVariation(Variation... operators)
operators - the variation operators in the order they are applied| Method Detail |
|---|
public String getName()
setName(String), a name is generated which
identifies the underlying operators.
public void setName(String name)
name - the name of this variation operatorpublic void appendOperator(Variation variation)
variation - the variation operator to appendpublic Solution[] evolve(Solution[] parents)
VariationgetArity) 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 Variationparents - the array of parent solutions
public int getArity()
Variationevolve method.
getArity in interface Variationevolve method
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||