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

VRP file with Multiple Depots: All vehicles are starting from single depot

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Optional
    • 7.5.0.Final
    • 6.4.0.Final, 6.5.0.Final
    • optaplanner-examples
    • None
    • NEW
    • NEW

    Description

      In VehicleRoutingImporter.createVehicleList() method, all vehicles are being set to the first depot.

      vehicle.setDepot(depotList.get(0));

      For example, if I put 10 depots in the file belgium-road-time-tw-n100-k10.vrp all vehicles would still start from the first Depot. So, instead of hard coding to the first depot from the DepotList, if the number of vehicles matches the number of depots, adding one vehicle to each depot might be more useful.

      Attachments

        Activity

          People

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            madhanpavan Eswara Vommina (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: