Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/28/17 22:52:08 (7 years ago)
Author:
pkimmesw
Message:

#2665 Dynamic ErcValues, Separate Push from BenchmarkSuite Push

File:
1 edited

Legend:

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

    r14875 r14897  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
     2  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char;
     3  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer;
     4
    25  public class Checksum : BenchmarkSuiteDataDescriptor {
    36    private const string name = "Checksum";
     
    2225        TrainingCount = 100,
    2326        TestCount = 1000,
    24         EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String,
     27        EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.Print,
    2528        MaxSize = 800,
    2629        EvalLimit = 1500,
    2730        ErcOptions = {
    2831          ErcProbability = 0.05,
    29           IntegerErcOptions = {
    30             IsEnabled = true,
    31             Constants = new [] { 64 },
    32             Start = -128,
    33             End = 128
    34           },
    35           CharErcOptions = {
    36             IsEnabled = true,
    37             Constants = new [] { ' ' },
    38             Start = 0x20,
    39             End = 0x7e
    40           }
     32          IntegerErcOptions = new IntegerErcOptions(
     33            new IntegerConstantErcValue(64),
     34            new IntegerRangeErcValue(-128, 128)),
     35          CharErcOptions = new CharErcOptions(
     36            new IntegerConstantErcValue(' '),
     37            new IntegerRangeErcValue(0x20, 0x7e))
    4138        }
    4239      };
     
    4845        OutputArgs = output,
    4946        InputString = input,
    50         OutputChar = output[0].ToCharArray(),
     47        OutputPrint = output[0],
    5148      };
    5249    }
Note: See TracChangeset for help on using the changeset viewer.