Changeset 8208 for trunk/sources
- Timestamp:
- 07/03/12 22:38:51 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/HeuristicLab.Problems.TravelingSalesman-3.3.csproj
r7646 r8208 108 108 <Reference Include="System.Data" /> 109 109 <Reference Include="System.Drawing" /> 110 <Reference Include="System.Windows.Forms" /> 110 111 <Reference Include="System.Xml" /> 111 112 </ItemGroup> -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r7872 r8208 251 251 else if (Evaluator is ITSPCoordinatesPathEvaluator && Coordinates != null) 252 252 SolutionCreator.LengthParameter.Value = new IntValue(Coordinates.Rows); 253 else SolutionCreator.LengthParameter.Value = null; 253 else { 254 SolutionCreator.LengthParameter.Value = null; 255 string error = "The given problem does not support the selected evaluator."; 256 if (Evaluator is ITSPDistanceMatrixEvaluator) 257 error += Environment.NewLine + "Please review that the " + DistanceMatrixParameter.Name + " parameter is defined or choose another evaluator."; 258 else error += Environment.NewLine + "Please review that the " + CoordinatesParameter.Name + " parameter is defined or choose another evaluator."; 259 PluginInfrastructure.ErrorHandling.ShowErrorDialog(error, null); 260 } 254 261 SolutionCreator.LengthParameter.Hidden = SolutionCreator.LengthParameter.Value != null; 255 262 SolutionCreator.PermutationTypeParameter.Value = new PermutationType(PermutationTypes.RelativeUndirected); … … 400 407 try { 401 408 EvaluateAndLoadTour(data.BestKnownTour); 402 } 403 catch (InvalidOperationException) { 409 } catch (InvalidOperationException) { 404 410 if (data.BestKnownQuality.HasValue) 405 411 BestKnownQuality = new DoubleValue(data.BestKnownQuality.Value);
Note: See TracChangeset
for help on using the changeset viewer.