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

Location:
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
Files:
2 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}
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveProblem.cs

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