Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/11/12 14:04:58 (12 years ago)
Author:
svonolfe
Message:

Improved performance when small time steps are used (#1955)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DynamicVehicleRouting/HeuristicLab.PDPSimulation/3.3/PickupDeliveryAnalyzer.cs

    r8782 r8792  
    262262    }
    263263
     264    protected virtual void UpdateSimulationTime(PickupDeliverySimulation simulation, PickupDeliveryScenario scenario, ResultCollection results) {
     265      if (!results.ContainsKey("SimulationTime")) {
     266        results.Add(new Result("SimulationTime", new DoubleValue()));
     267      }
     268
     269      (results["SimulationTime"].Value as DoubleValue).Value = simulation.SimulationTime;
     270    }
     271
    264272    public virtual void Analyze(PickupDeliverySimulation simulation, PickupDeliveryScenario scenario, ResultCollection results) {
     273      UpdateSimulationTime(simulation, scenario, results);
    265274      UpdateOrderResults(simulation, scenario, results);
    266275      UpdateVehicleResults(simulation, scenario, results);
Note: See TracChangeset for help on using the changeset viewer.