Class SSX
java.lang.Object
org.moeaframework.core.operator.TypeSafeCrossover<Subset>
org.moeaframework.core.operator.subset.SSX
- All Implemented Interfaces:
Configurable
,Variation
Subset crossover. Similar to
HUX
for binary strings, SSX swaps half of the non-shared members of the two\
subsets.
This variation operator is type-safe.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.moeaframework.core.operator.TypeSafeCrossover
evolve, getArity, getProbability, setProbability
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.moeaframework.core.configuration.Configurable
applyConfiguration, getConfiguration
-
Constructor Details
-
SSX
public SSX()Constructs a SSX operator with a 30% chance of being applied to each subset variable. -
SSX
public SSX(double probability) Constructs a SSX operator.- Parameters:
probability
- the probability of applying this operator
-
-
Method Details
-
getName
Description copied from interface:Variation
Returns the name of this variation operator. This name should also be used as the prefix for any parameters. As such, the name should only contain alphanumeric characters, avoid using whitespace and other symbols.- Returns:
- the name of this variation operator
-
evolve
Evolves the specified variables using the SSX operator.- Specified by:
evolve
in classTypeSafeCrossover<Subset>
- Parameters:
s1
- the first subsets2
- the second subset
-