Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/11 14:33:18 (14 years ago)
Author:
mkommend
Message:

#1418: Added IHeuristicOptimizationProblem and adapted all according classes.

File:
1 edited

Legend:

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

    r5445 r5578  
    3838  [Creatable("Problems")]
    3939  [StorableClass]
    40   public sealed class TravelingSalesmanProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     40  public sealed class TravelingSalesmanProblem : ParameterizedNamedItem, ISingleObjectiveHeuristicOptimizationProblem, IStorableContent {
    4141    public string Filename { get; set; }
    4242
     
    4949      get { return (ValueParameter<BoolValue>)Parameters["Maximization"]; }
    5050    }
    51     IParameter ISingleObjectiveProblem.MaximizationParameter {
     51    IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter {
    5252      get { return MaximizationParameter; }
    5353    }
     
    6464      get { return (ValueParameter<IPermutationCreator>)Parameters["SolutionCreator"]; }
    6565    }
    66     IParameter IProblem.SolutionCreatorParameter {
     66    IParameter IHeuristicOptimizationProblem.SolutionCreatorParameter {
    6767      get { return SolutionCreatorParameter; }
    6868    }
     
    7070      get { return (ValueParameter<ITSPEvaluator>)Parameters["Evaluator"]; }
    7171    }
    72     IParameter IProblem.EvaluatorParameter {
     72    IParameter IHeuristicOptimizationProblem.EvaluatorParameter {
    7373      get { return EvaluatorParameter; }
    7474    }
     
    7676      get { return (OptionalValueParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
    7777    }
    78     IParameter ISingleObjectiveProblem.BestKnownQualityParameter {
     78    IParameter ISingleObjectiveHeuristicOptimizationProblem.BestKnownQualityParameter {
    7979      get { return BestKnownQualityParameter; }
    8080    }
     
    101101      set { SolutionCreatorParameter.Value = value; }
    102102    }
    103     ISolutionCreator IProblem.SolutionCreator {
     103    ISolutionCreator IHeuristicOptimizationProblem.SolutionCreator {
    104104      get { return SolutionCreatorParameter.Value; }
    105105    }
     
    108108      set { EvaluatorParameter.Value = value; }
    109109    }
    110     ISingleObjectiveEvaluator ISingleObjectiveProblem.Evaluator {
     110    ISingleObjectiveEvaluator ISingleObjectiveHeuristicOptimizationProblem.Evaluator {
    111111      get { return EvaluatorParameter.Value; }
    112112    }
    113     IEvaluator IProblem.Evaluator {
     113    IEvaluator IHeuristicOptimizationProblem.Evaluator {
    114114      get { return EvaluatorParameter.Value; }
    115115    }
Note: See TracChangeset for help on using the changeset viewer.