All Implemented Interfaces:
Configurable, Variation

public class HUX extends TypeSafeCrossover<BinaryVariable>
Half-uniform crossover (HUX) operator. Half of the non-matching bits are swapped between the two parents.

This variation operator is type-safe.

  • Constructor Details

    • HUX

      public HUX()
      Constructs a HUX operator with a 100% chance of applying this operator to each solution.
    • HUX

      public HUX(double probability)
      Constructs a HUX operator.
      Parameters:
      probability - the probability of applying this operator to each solution
  • 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(BinaryVariable v1, BinaryVariable v2)
      Evolves the specified variables using the HUX operator.
      Specified by:
      evolve in class TypeSafeCrossover<BinaryVariable>
      Parameters:
      v1 - the first variable
      v2 - the second variable