Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/29/11 15:51:56 (13 years ago)
Author:
svonolfe
Message:

Added support for multi depot CVRP instances (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinCustomerRelocationManipulator.cs

    r6753 r6851  
    6767        for (int i = 0; i < route1.Stops.Count; i++) {
    6868          int stop = route1.Stops[i];
    69           if (ProblemInstance.Demand[stop] < 0) {
     69          if (ProblemInstance.GetDemand(stop) < 0) {
    7070            int source = pdp.PickupDeliveryLocation[stop];
    7171
     
    158158
    159159            //drive there
    160             double currentDistace = vrptw.GetDistance(start, end);
     160            double currentDistace = vrptw.GetDistance(start, end, individual);
    161161            time += currentDistace;
    162162
Note: See TracChangeset for help on using the changeset viewer.