Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/25/15 23:24:01 (9 years ago)
Author:
abeham
Message:

#2521:

  • Adapted single-objective test function problem to new problem infrastructure
  • Added additional interfaces to RealVectorEncoding
  • Fixed IParticleUpdater interface (must implement IStochasticOperator if it contains a Random parameter)
Location:
branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Instances
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Instances/SOTFData.cs

    r12012 r13403  
    3939    /// The operator used for evaluations
    4040    /// </summary>
    41     public ISingleObjectiveTestFunctionProblemEvaluator Evaluator { get; set; }
     41    public ISingleObjectiveTestFunction TestFunction { get; set; }
    4242  }
    4343}
  • branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Instances/SOTFDataDescriptor.cs

    r12012 r13403  
    2424namespace HeuristicLab.Problems.TestFunctions {
    2525  internal class SOTFDataDescriptor : IDataDescriptor {
    26     public string Name { get { return Evaluator.FunctionName + " Function"; } }
     26    public string Name { get { return TestFunction.ItemName + " Function"; } }
    2727
    2828    public string Description {
    29       get { return Evaluator.Description; }
     29      get { return TestFunction.Description; }
    3030    }
    3131
    32     internal ISingleObjectiveTestFunctionProblemEvaluator Evaluator { get; set; }
     32    internal ISingleObjectiveTestFunction TestFunction { get; set; }
    3333
    34     public SOTFDataDescriptor(ISingleObjectiveTestFunctionProblemEvaluator evaluator) {
    35       Evaluator = evaluator;
     34    public SOTFDataDescriptor(ISingleObjectiveTestFunction testFunction) {
     35      TestFunction = testFunction;
    3636    }
    3737  }
  • branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Instances/SOTFInstanceProvider.cs

    r12012 r13403  
    4545
    4646    public override IEnumerable<IDataDescriptor> GetDataDescriptors() {
    47       var evaluators = ApplicationManager.Manager.GetInstances<ISingleObjectiveTestFunctionProblemEvaluator>()
     47      var evaluators = ApplicationManager.Manager.GetInstances<ISingleObjectiveTestFunction>()
    4848                                                 .OrderBy(x => x.Name);
    4949      return evaluators.Select(x => new SOTFDataDescriptor(x));
     
    5555        Name = descriptor.Name,
    5656        Description = descriptor.Description,
    57         Evaluator = descriptor.Evaluator
     57        TestFunction = descriptor.TestFunction
    5858      };
    5959    }
Note: See TracChangeset for help on using the changeset viewer.