Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/29/10 17:53:12 (14 years ago)
Author:
abeham
Message:

Added a permutation type property specifying whether it's a relative (directed or undirected) or absolute permutation #889

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs

    r3209 r3231  
    194194        tourParser.Parse();
    195195        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);
    197197      }
    198198    }
     
    326326    private void ParameterizeSolutionCreator() {
    327327      SolutionCreator.LengthParameter.Value = new IntValue(Coordinates.Rows);
     328      SolutionCreator.PermutationTypeParameter.Value = new PermutationType(PermutationTypes.RelativeUndirected);
    328329    }
    329330    private void ParameterizeEvaluator() {
Note: See TracChangeset for help on using the changeset viewer.