Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/21/17 11:33:53 (7 years ago)
Author:
pkimmesw
Message:

#2665 Testet Problems, Testet error functions, Small fixes, Created HL files

Location:
branches/PushGP/HeuristicLab.PushGP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP

    • Property svn:ignore
      •  

        old new  
        11*.user
         2packages
         3TestResults
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/XWordLines.cs

    r15017 r15334  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
     2  using System.Linq;
     3
    24  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char;
    35  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer;
     
    68    private const string name = "X-Word Lines - Hard";
    79    private const string fileName = "XWordLines.csv";
    8     private const string description = "Given an integer X and a string that can contain spaces and newlines, print the string with exactly X words per line.The last line may have fewer than X words.";
     10    private const string description = "Given an integer X and a string that can contains spaces and newlines, print the string with exactly X words per line. The last line may have fewer than X words.";
    911
    1012    protected override string FileName { get { return fileName; } }
     
    1820        Name = Name,
    1921        Description = Description,
     22        ProgramExecutionBudget = 45000000,
    2023        Examples = CloneExamples(),
    2124        BestResult = 0,
    22         WorstResult = 100,
     25        WorstResult = 5000,
    2326        InputArgumentTypes = new[] { ExampleArgumentType.Integer, ExampleArgumentType.String },
    2427        OutputArgumentTypes = new[] { ExampleArgumentType.Print },
     
    4346        InputString = new[] { input[0] },
    4447        OutputPrint = output[0],
     48        // Helper
     49        OutputInteger = new[] { input[0].Split(' ', '\n').LongCount(x => !string.IsNullOrWhiteSpace(x)) }
    4550      };
    4651    }
Note: See TracChangeset for help on using the changeset viewer.