Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/22/11 16:52:43 (13 years ago)
Author:
sforsten
Message:

#1669: real world problems have been added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveProblem.cs

    r6968 r7044  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    2422using System.Linq;
    2523using HeuristicLab.Common;
     
    2826using HeuristicLab.Parameters;
    2927using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    30 using HeuristicLab.PluginInfrastructure;
    3128
    3229namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
     
    119116      ProblemData = problemData;
    120117    }
    121 
    122     public override IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators() {
    123       return ApplicationManager.Manager.GetInstances<IRegressionBenchmarkProblemDataGenerator>();
    124     }
    125 
    126     public override void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator) {
    127       if (!(benchmarkGenerator is IRegressionBenchmarkProblemDataGenerator)) {
    128         throw new ArgumentException("BenchmarkGenerator is not an IRegressionBenchmarkProblemDataGenerator.");
    129       }
    130 
    131       IDataAnalysisProblemData problemData = benchmarkGenerator.GenerateProblemData();
    132 
    133       if (problemData is IRegressionProblemData)
    134         ProblemData = (IRegressionProblemData)problemData;
    135       else
    136         throw new InvalidCastException("ProblemDataGenerator didn't return an IRegressionProblemData.");
    137     }
    138118  }
    139119}
Note: See TracChangeset for help on using the changeset viewer.