Changeset 3231 for trunk/sources/HeuristicLab.Problems.TravelingSalesman
- Timestamp:
- 03/29/10 17:53:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r3209 r3231 194 194 tourParser.Parse(); 195 195 if (tourParser.Tour.Length != Coordinates.Rows) throw new InvalidDataException("Length of optimal tour is not equal to number of cities."); 196 BestKnownSolution = new Permutation( tourParser.Tour);196 BestKnownSolution = new Permutation(PermutationTypes.RelativeUndirected, tourParser.Tour); 197 197 } 198 198 } … … 326 326 private void ParameterizeSolutionCreator() { 327 327 SolutionCreator.LengthParameter.Value = new IntValue(Coordinates.Rows); 328 SolutionCreator.PermutationTypeParameter.Value = new PermutationType(PermutationTypes.RelativeUndirected); 328 329 } 329 330 private void ParameterizeEvaluator() {
Note: See TracChangeset
for help on using the changeset viewer.