Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/01/17 09:28:34 (7 years ago)
Author:
pkimmesw
Message:

#2665 Fixed Benchmark Problem Definition, Converted LoopExpressions to stateless expressions, Added several unit test to ensure funcionality, Fixed UI bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/ProblemData.cs

    r14907 r15017  
    1010  public class ProblemData : NamedItem {
    1111
    12     public ProblemData() {
     12    public ProblemData(ProblemType problemType) {
    1313      Name = "BenchmarkSuite Problem Data";
    1414      ErcOptions = new ErcOptions(); // default does nothing
     15      FloatStringFormat = "R";
     16      ProblemType = problemType;
    1517    }
    1618
     
    3133      EnabledDataTypes = origin.EnabledDataTypes;
    3234      ErcOptions = cloner.Clone(origin.ErcOptions);
     35      FloatStringFormat = origin.FloatStringFormat;
    3336    }
     37
     38    [Storable]
     39    public readonly ProblemType ProblemType;
    3440
    3541    [Storable]
     
    7177    public ErcOptions ErcOptions { get; set; }
    7278
     79    [Storable]
     80    public string FloatStringFormat { get; set; }
     81
    7382    public override IDeepCloneable Clone(Cloner cloner) {
    7483      return new ProblemData(this, cloner);
Note: See TracChangeset for help on using the changeset viewer.