Class TSDistance

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

public class TSDistance extends Object implements StateDistance<TSState>
  • Constructor Details

    • TSDistance

      public TSDistance(TSProblem problem)
  • 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