Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4184 for trunk


Ignore:
Timestamp:
08/10/10 10:20:41 (14 years ago)
Author:
svonolfe
Message:

Adapted VRP analyzer (#1039)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestVRPSolutionAnalyzer.cs

    r4179 r4184  
    127127        BestSolutionParameter.ActualValue = solution;
    128128        results.Add(new Result("Best VRP Solution", solution));
     129       
     130        results.Add(new Result("Best Distance",  new DoubleValue(distances[i].Value)));
     131        results.Add(new Result("Best Overload",  new DoubleValue(overloads[i].Value)));
     132        results.Add(new Result("Best Tardiness",  new DoubleValue(tardinesses[i].Value)));
     133        results.Add(new Result("Best TravelTime",  new DoubleValue(travelTimes[i].Value)));
     134        results.Add(new Result("Best VehicleUtilization",  new DoubleValue(vehiclesUtilizations[i].Value)));
    129135      } else {
    130136        if (solution.Quality.Value > qualities[i].Value) {
     
    132138          solution.Solution = best.Clone() as IVRPEncoding;
    133139          solution.Quality.Value = qualities[i].Value;
    134           solution.Distance.Value = distances[i].Value;
    135           solution.Overload.Value = overloads[i].Value;
    136           solution.Tardiness.Value = tardinesses[i].Value;
    137           solution.TravelTime.Value = travelTimes[i].Value;
    138           solution.VehicleUtilization.Value = vehiclesUtilizations[i].Value;
     140          solution.Distance.Value = (results["Best Distance"].Value as DoubleValue).Value = distances[i].Value;
     141          solution.Overload.Value = (results["Best Overload"].Value as DoubleValue).Value = overloads[i].Value;
     142          solution.Tardiness.Value = (results["Best Tardiness"].Value as DoubleValue).Value = tardinesses[i].Value;
     143          solution.TravelTime.Value = (results["Best TravelTime"].Value as DoubleValue).Value = travelTimes[i].Value;
     144          solution.VehicleUtilization.Value = (results["Best VehicleUtilization"].Value as DoubleValue).Value = vehiclesUtilizations[i].Value;
    139145          solution.DistanceMatrix = DistanceMatrixParameter.ActualValue;
    140146          solution.UseDistanceMatrix = UseDistanceMatrixParameter.ActualValue;
Note: See TracChangeset for help on using the changeset viewer.