Changeset 4852 for trunk/sources/HeuristicLab.Problems.VehicleRouting.Views
- Timestamp:
- 11/19/10 14:26:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3/VehicleRoutingProblemView.cs
r4851 r4852 109 109 vrpSolutionView.Content = new VRPSolution(Content.Coordinates); 110 110 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); 112 147 } 113 148 }
Note: See TracChangeset
for help on using the changeset viewer.