Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/19/17 12:55:58 (7 years ago)
Author:
pkimmesw
Message:

#2665 Started Plush Encoding, Added Zero Error Individual Count Analyzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Generators/CodeGenerator/LinearCodeGenerator.cs

    r14834 r15273  
    3131      IManagedPool<PooledList<Expression>> expressionListPool = null,
    3232      IRandom random = null,
    33       IReadOnlyPushConfiguration pushConfiguration = null,
     33      IReadOnlyPushConfiguration config = null,
    3434      IDictionary<string, Expression> customExpressions = null) {
    3535      if (maxPoints == 0)
    3636        return new Expression[0];
    3737
    38       random = random ?? new FastRandom();
    39       pushConfiguration = pushConfiguration ?? new PushConfiguration();
     38      random = random ?? new MersenneTwister();
     39      config = config ?? new PushConfiguration();
    4040
    4141      var size = maxPoints <= 1 ? 1 : random.Next(1, maxPoints);
     
    4343
    4444      for (var i = 0; i < size; i++) {
    45         var expression = CodeGeneratorUtils.CreateExpressionOrErc(
     45        var expression = CodeGeneratorUtils.MapToExpression(
    4646          random,
    47           pushConfiguration.EnabledExpressions,
    48           pushConfiguration.ErcOptions,
     47          config.ErcOptions,
     48          config,
    4949          customExpressions);
    5050
Note: See TracChangeset for help on using the changeset viewer.