Changeset 12978 for trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
- Timestamp:
- 10/01/15 00:36:27 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r12504 r12978 254 254 private void UpdateMoveEvaluators() { 255 255 Operators.RemoveAll(x => x is ISingleObjectiveMoveEvaluator); 256 foreach ( ITSPPathMoveEvaluator op in ApplicationManager.Manager.GetInstances<ITSPPathMoveEvaluator>())256 foreach (var op in ApplicationManager.Manager.GetInstances<ITSPMoveEvaluator>()) 257 257 if (op.EvaluatorType == Evaluator.GetType()) { 258 258 Operators.Add(op); … … 432 432 try { 433 433 EvaluateAndLoadTour(data.BestKnownTour); 434 } 435 catch (InvalidOperationException) { 434 } catch (InvalidOperationException) { 436 435 if (data.BestKnownQuality.HasValue) 437 436 BestKnownQuality = new DoubleValue(data.BestKnownQuality.Value);
Note: See TracChangeset
for help on using the changeset viewer.