Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/17 14:11:43 (7 years ago)
Author:
pkimmesw
Message:

#2665 Fixed bias 0 issue, PushExpressionFrequencyAnalyzer, Fixed probability for ERC settings, Fixed enable/disable instructions, Added expression descriptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/PushProblem.cs

    r15017 r15032  
    1010  using HeuristicLab.Data;
    1111  using HeuristicLab.Encodings.IntegerVectorEncoding;
     12  using HeuristicLab.Problems.ProgramSynthesis.Push.Analyzer;
    1213  using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    1314  using HeuristicLab.Problems.ProgramSynthesis.Push.Problem.BenchmarkSuite;
     
    4041      InitParameters();
    4142      InitEncoding();
     43      InitOperators();
    4244    }
    4345
     
    8587    private const string InitProgramLengthParameterName = "InitProgramLength";
    8688    private const string InitProgramLengthParameterDescription = "This is the initial size of a push program.";
     89    private const string PushConfigurationParameterName = "PushConfiguration";
    8790
    8891    public const string CasesScopeParameterName = "CaseQualities";
     
    9699      }
    97100
     101      if (!Parameters.ContainsKey(PushConfigurationParameterName))
     102        Parameters.Add(new ValueParameter<IReadOnlyPushConfiguration>(PushConfigurationParameterName, config) {
     103          Hidden = true
     104        });
     105
    98106      if (!Parameters.ContainsKey(InitProgramLengthParameterName)) {
    99107        Parameters.Add(new FixedValueParameter<IntValue>(
     
    123131      Encoding.Bounds[0, 1] = config.EnabledExpressions.Count;
    124132      Encoding.Length = config.MaxPointsInProgram;
     133    }
     134
     135    private void InitOperators() {
     136      Operators.Add(new PushExpressionFrequencyAnalyzer());
    125137    }
    126138
Note: See TracChangeset for help on using the changeset viewer.