Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/15 16:48:04 (9 years ago)
Author:
mkommend
Message:

#2521: Adapted PermutationEncoding and TSP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs

    r13173 r13366  
    4040  [Creatable(CreatableAttribute.Categories.CombinatorialProblems, Priority = 100)]
    4141  [StorableClass]
    42   public sealed class TravelingSalesmanProblem : SingleObjectiveHeuristicOptimizationProblem<ITSPEvaluator, IPermutationCreator>, IStorableContent,
    43     IProblemInstanceConsumer<TSPData> {
     42  public sealed class TravelingSalesmanProblem : SingleObjectiveHeuristicOptimizationProblem<ITSPEvaluator, IPermutationCreator>,
     43    ISingleObjectiveProblem<PermutationEncoding, Permutation>, IStorableContent, IProblemInstanceConsumer<TSPData> {
     44
    4445    private static readonly int DistanceMatrixSizeLimit = 1000;
    4546    public string Filename { get; set; }
     
    432433        try {
    433434          EvaluateAndLoadTour(data.BestKnownTour);
    434         } catch (InvalidOperationException) {
     435        }
     436        catch (InvalidOperationException) {
    435437          if (data.BestKnownQuality.HasValue)
    436438            BestKnownQuality = new DoubleValue(data.BestKnownQuality.Value);
Note: See TracChangeset for help on using the changeset viewer.