Changeset 4851 for trunk/sources/HeuristicLab.Problems.VehicleRouting.Views
- Timestamp:
- 11/19/10 13:54:50 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3/VRPImportDialog.cs
r4847 r4851 57 57 okButton.Enabled = true; 58 58 59 tourFileTextBox.Text = string.Empty; 60 tourFileName = string.Empty; 61 59 62 format = (VRPFormat)(openVRPFileDialog.FilterIndex); 60 63 } -
trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3/VehicleRoutingProblemView.cs
r4847 r4851 109 109 vrpSolutionView.Content = new VRPSolution(Content.Coordinates); 110 110 else { 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); 111 vrpSolutionView.Content = Content.BestKnownSolution; 147 112 } 148 113 }
Note: See TracChangeset
for help on using the changeset viewer.