Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/10 14:26:38 (13 years ago)
Author:
svonolfe
Message:

partly reverted r4851 (#1236)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3/VehicleRoutingProblemView.cs

    r4851 r4852  
    109109        vrpSolutionView.Content = new VRPSolution(Content.Coordinates);
    110110      else {
    111         vrpSolutionView.Content = Content.BestKnownSolution;
     111        //call evaluator
     112        IValueLookupParameter<DoubleMatrix> distMatrix = new ValueLookupParameter<DoubleMatrix>("DistMatrix",
     113          Content.DistanceMatrix);
     114
     115        TourEvaluation eval = VRPEvaluator.Evaluate(
     116          Content.BestKnownSolution,
     117          Content.Vehicles,
     118          Content.DueTime,
     119          Content.ServiceTime,
     120          Content.ReadyTime,
     121          Content.Demand,
     122          Content.Capacity,
     123          Content.FleetUsageFactorParameter.Value,
     124          Content.TimeFactorParameter.Value,
     125          Content.DistanceFactorParameter.Value,
     126          Content.OverloadPenaltyParameter.Value,
     127          Content.TardinessPenaltyParameter.Value,
     128          Content.Coordinates,
     129          distMatrix,
     130          Content.UseDistanceMatrix);
     131
     132        Content.DistanceMatrix = distMatrix.Value;
     133
     134        vrpSolutionView.Content = new VRPSolution(Content.Coordinates,
     135          Content.BestKnownSolution,
     136          new DoubleValue(eval.Quality),
     137          new DoubleValue(eval.Distance),
     138          new DoubleValue(eval.Overload),
     139          new DoubleValue(eval.Tardiness),
     140          new DoubleValue(eval.TravelTime),
     141          new DoubleValue(eval.VehcilesUtilized),
     142          Content.DistanceMatrix,
     143          Content.UseDistanceMatrix,
     144          Content.ReadyTime,
     145          Content.DueTime,
     146          Content.ServiceTime);
    112147      }
    113148    }
Note: See TracChangeset for help on using the changeset viewer.