java.lang.Object
org.ddolib.examples.layered.talentscheduling.TSDistance
All Implemented Interfaces:
StateDistance<TSState>

public class TSDistance extends Object implements StateDistance<TSState>
State distance for Talent Scheduling based on the symmetric difference of remaining scenes.
  • Constructor Details

    • TSDistance

      public TSDistance(TSProblem problem)
      Creates a distance helper bound to a given Talent Scheduling instance.
      Parameters:
      problem - target problem instance
  • Method Details

    • distance

      public double distance(TSState a, TSState b)
      Description copied from interface: StateDistance
      Computes the discrete distance between two states.
      Specified by:
      distance in interface StateDistance<TSState>
      Parameters:
      a - the first state
      b - the second state
      Returns:
      the distance between a and b