Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/13/18 16:56:35 (6 years ago)
Author:
bburlacu
Message:

#2895: Add solution skeleton for PushGP with genealogy analysis.

Location:
branches/2895_PushGP_GenealogyAnalysis
Files:
1 added
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/SolutionCreator/PushSolutionCreator.cs

    r15289 r15771  
    1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.SolutionCreator {
     1using HeuristicLab.Common;
     2using HeuristicLab.Core;
     3using HeuristicLab.Data;
     4using HeuristicLab.Encodings.IntegerVectorEncoding;
     5using HeuristicLab.Parameters;
     6using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    27
    3   using HeuristicLab.Common;
    4   using HeuristicLab.Core;
    5   using HeuristicLab.Data;
    6   using HeuristicLab.Encodings.IntegerVectorEncoding;
    7   using HeuristicLab.Parameters;
    8   using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    9   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc;
    10   using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
    11 
     8namespace HeuristicLab.Problems.ProgramSynthesis {
    129  /// <summary>
    1310  /// Generates a new random integer vector with each element uniformly distributed in a specified range.
     
    4542
    4643
    47     public IValueParameter<ErcOptions> ErcOptionsParameter
    48     {
     44    public IValueParameter<ErcOptions> ErcOptionsParameter {
    4945      get { return (IValueParameter<ErcOptions>)Parameters[ERC_OPTIONS_PARAMETER_NAME]; }
    5046    }
    5147
    52     public ErcOptions ErcOptions
    53     {
     48    public ErcOptions ErcOptions {
    5449      get { return ErcOptionsParameter.Value; }
    55       set
    56       {
     50      set {
    5751        ErcOptionsParameter.Value = value;
    5852      }
    5953    }
    6054
    61     public IValueParameter<IntValue> MinLengthParameter
    62     {
     55    public IValueParameter<IntValue> MinLengthParameter {
    6356      get { return (IValueParameter<IntValue>)Parameters[MIN_LENGTH_PARAMETER_NAME]; }
    6457    }
    6558
    66     public int MinLength
    67     {
     59    public int MinLength {
    6860      get { return MinLengthParameter.Value.Value; }
    6961      set { MinLengthParameter.Value.Value = value; }
    7062    }
    7163
    72     public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter
    73     {
     64    public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter {
    7465      get { return (IValueLookupParameter<IReadOnlyExpressionsConfiguration>)Parameters["Instructions"]; }
    7566    }
     
    8677    //}
    8778
    88     public IValueParameter<PercentValue> InInstructionProbabilityParameter
    89     {
     79    public IValueParameter<PercentValue> InInstructionProbabilityParameter {
    9080      get { return (IValueParameter<PercentValue>)Parameters[IN_INSTRUCTION_PROBABILITY]; }
    9181    }
    9282
    93     public double InInstructionProbability
    94     {
     83    public double InInstructionProbability {
    9584      get { return InInstructionProbabilityParameter.Value.Value; }
    9685      set { InInstructionProbabilityParameter.Value.Value = value; }
Note: See TracChangeset for help on using the changeset viewer.