Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2081

VRP example: dueTime curtailing doesn't work with multiple depots with different dueTime's

    XMLWordPrintable

Details

    • NEW
    • NEW

    Description

      In the swing examples, this trick curtails the dueTime of every Customer in the VRP importer, so that
      customer.dueTime = Math.min(customer.dueTime, depot.dueTime - drivingTime(customer, depot))
      This way, the dueTime of the Depot is respected implicitly.

      https://github.com/kiegroup/optaplanner/blob/master/optaplanner-examples/src/main/java/org/optaplanner/examples/vehiclerouting/persistence/VehicleRoutingImporter.java#L515

      However, when there are multiple depots with different dueTimes, this is incorrect.
      We should have a proper constraint check that.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: