All Implemented Interfaces:
Configurable, Variation

public class SSX extends TypeSafeCrossover<Subset>
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 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

      public String 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

      public void evolve(Subset s1, Subset s2)
      Evolves the specified variables using the SSX operator.
      Specified by:
      evolve in class TypeSafeCrossover<Subset>
      Parameters:
      s1 - the first subset
      s2 - the second subset