Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/30/11 12:55:55 (13 years ago)
Author:
svonolfe
Message:

Added possibility to add a ready time to depots (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPTW/MDCVRPTWEvaluator.cs

    r6854 r6855  
    8686      double spareCapacity = capacity - delivered;
    8787
     88      double tourStartTime = vrptw.ReadyTime[depot];
     89      time = tourStartTime;
     90
    8891      //simulate a tour, start and end at depot
    8992      for (int i = 0; i <= tour.Stops.Count; i++) {
     
    131134        time += currentServiceTime;
    132135
    133         CVRPTWInsertionInfo stopInfo = new CVRPTWInsertionInfo(start, end, spareCapacity, arrivalTime, time, spareTime, waitTime);
     136        CVRPTWInsertionInfo stopInfo = new CVRPTWInsertionInfo(start, end, spareCapacity, tourStartTime, arrivalTime, time, spareTime, waitTime);
    134137        tourInfo.AddStopInsertionInfo(stopInfo);
    135138      }
     
    199202      if (index > 0)
    200203        time = (tourInsertionInfo.GetStopInsertionInfo(index - 1) as CVRPTWInsertionInfo).LeaveTime;
     204      else
     205        time = insertionInfo.TourStartTime;
     206
    201207      time += startDistance;
    202208
Note: See TracChangeset for help on using the changeset viewer.