Module org.maxicp

Class TSPTWInstance

java.lang.Object
org.maxicp.cp.examples.utils.TSPTWInstance

public class TSPTWInstance extends Object
A TSP with Time Windows instance. The depot is duplicated at the end of the instance. So we don't seek for a tour but for a path from the depot to its duplicate at the end
  • Field Details

    • n

      public int n
    • distMatrix

      public int[][] distMatrix
    • earliest

      public int[] earliest
    • latest

      public int[] latest
    • horizon

      public int horizon
  • Constructor Details

    • TSPTWInstance

      public TSPTWInstance(String file)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • checkSolution

      public boolean checkSolution(int[] tour, int totalDistance)