Class MutationCounter<Solution_>

java.lang.Object
org.optaplanner.core.impl.domain.solution.mutation.MutationCounter<Solution_>
Type Parameters:
Solution_ - the solution type, the class with the PlanningSolution annotation

public class MutationCounter<Solution_> extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • countMutations

      public int countMutations(Solution_ a, Solution_ b)
      Parameters:
      a - never null
      b - never null
      Returns:
      >= 0, the number of planning variables that have a different value in a and b.
    • toString

      public String toString()
      Overrides:
      toString in class Object