Free cookie consent management tool by TermsFeed Policy Generator

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

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

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

Legend:

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

    r15334 r15771  
    1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.SolutionCreator {
    2   using HeuristicLab.Core;
    3   using HeuristicLab.Data;
    4   using HeuristicLab.Optimization;
    5   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc;
    6   using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
    7   using HeuristicLab.Problems.ProgramSynthesis.Push.Encoding;
     1using HeuristicLab.Core;
     2using HeuristicLab.Data;
     3using HeuristicLab.Optimization;
    84
     5namespace HeuristicLab.Problems.ProgramSynthesis {
    96  public interface IPlushCreator : ISolutionCreator, IPlushOperator {
    107    IValueLookupParameter<IntValue> MinLengthParameter { get; }
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/SolutionCreator/PlushCreator.cs

    r15334 r15771  
    11using System;
     2using HeuristicLab.Common;
     3using HeuristicLab.Core;
     4using HeuristicLab.Data;
     5using HeuristicLab.Operators;
     6using HeuristicLab.Optimization;
     7using HeuristicLab.Parameters;
     8using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    29
    3 namespace HeuristicLab.Problems.ProgramSynthesis.Push.SolutionCreator {
    4   using HeuristicLab.Common;
    5   using HeuristicLab.Core;
    6   using HeuristicLab.Data;
    7   using HeuristicLab.Operators;
    8   using HeuristicLab.Optimization;
    9   using HeuristicLab.Parameters;
    10   using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    11   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc;
    12   using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
    13   using HeuristicLab.Problems.ProgramSynthesis.Push.Encoding;
    14   using HeuristicLab.Problems.ProgramSynthesis.Push.Extensions;
    15   using HeuristicLab.Problems.ProgramSynthesis.Push.Generators.CodeGenerator;
    16 
     10namespace HeuristicLab.Problems.ProgramSynthesis {
    1711  [Item("PlushCreator", "An operator which creates a new random plush vector with each element uniformly distributed")]
    1812  [StorableClass]
     
    3630    public PlushCreator(PlushCreator origin, Cloner cloner) : base(origin, cloner) { }
    3731
    38     public override bool CanChangeName
    39     {
     32    public override bool CanChangeName {
    4033      get { return false; }
    4134    }
    42     public ILookupParameter<IRandom> RandomParameter
    43     {
     35    public ILookupParameter<IRandom> RandomParameter {
    4436      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    4537    }
    46     public ILookupParameter<PlushVector> PlushVectorParameter
    47     {
     38    public ILookupParameter<PlushVector> PlushVectorParameter {
    4839      get { return (ILookupParameter<PlushVector>)Parameters["PlushVector"]; }
    4940    }
    50     public IValueLookupParameter<IntValue> MinLengthParameter
    51     {
     41    public IValueLookupParameter<IntValue> MinLengthParameter {
    5242      get { return (IValueLookupParameter<IntValue>)Parameters["MinLength"]; }
    5343    }
    54     public IValueLookupParameter<IntValue> MaxLengthParameter
    55     {
     44    public IValueLookupParameter<IntValue> MaxLengthParameter {
    5645      get { return (IValueLookupParameter<IntValue>)Parameters["MaxLength"]; }
    5746    }
    58     public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter
    59     {
     47    public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter {
    6048      get { return (IValueLookupParameter<IReadOnlyExpressionsConfiguration>)Parameters["Instructions"]; }
    6149    }
    62     public IValueLookupParameter<IReadOnlyErcOptions> ErcOptionsParameter
    63     {
     50    public IValueLookupParameter<IReadOnlyErcOptions> ErcOptionsParameter {
    6451      get { return (IValueLookupParameter<IReadOnlyErcOptions>)Parameters["ErcOptions"]; }
    6552    }
    66     public IValueLookupParameter<PercentValue> InInstructionProbabilityParameter
    67     {
     53    public IValueLookupParameter<PercentValue> InInstructionProbabilityParameter {
    6854      get { return (IValueLookupParameter<PercentValue>)Parameters["InInstructionProbability"]; }
    6955    }
    70     public IValueLookupParameter<IntValue> MaxCloseParameter
    71     {
     56    public IValueLookupParameter<IntValue> MaxCloseParameter {
    7257      get { return (IValueLookupParameter<IntValue>)Parameters["MaxClose"]; }
    7358    }
    74     public IValueLookupParameter<DoubleValue> CloseBiasLevelParameter
    75     {
     59    public IValueLookupParameter<DoubleValue> CloseBiasLevelParameter {
    7660      get { return (IValueLookupParameter<DoubleValue>)Parameters["CloseBiasLevel"]; }
    7761    }
  • 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; }
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/SolutionCreator/PushSolutionEncoding.cs

    r15273 r15771  
    1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.SolutionCreator {
     1namespace HeuristicLab.Problems.ProgramSynthesis {
    22  public class PushSolutionEncoding {
    33    public const int Noop = -1;
Note: See TracChangeset for help on using the changeset viewer.