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
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Manipulator/IPlushManipulator.cs

    r15275 r15771  
    1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.Manipulator {
    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 IPlushManipulator : IPlushOperator, IManipulator {
    107    IValueLookupParameter<PercentValue> InInstructionProbabilityParameter { get; }
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Manipulator/UniformMutation.cs

    r15334 r15771  
    1 // ReSharper disable CompareOfFloatsByEqualityOperator
    2 namespace HeuristicLab.Problems.ProgramSynthesis.Push.Manipulator {
     1using HeuristicLab.Common;
     2using HeuristicLab.Core;
     3using HeuristicLab.Data;
     4using HeuristicLab.Operators;
     5using HeuristicLab.Optimization;
     6using HeuristicLab.Parameters;
     7using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    38
    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.Base.Extensions;
    13   using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
    14   using HeuristicLab.Problems.ProgramSynthesis.Push.Encoding;
    15   using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    16   using HeuristicLab.Problems.ProgramSynthesis.Push.Generators.CodeGenerator;
    17 
     9namespace HeuristicLab.Problems.ProgramSynthesis {
    1810  /// <summary>
    1911  /// Uniformly distributed change of a single position of an integer vector.
     
    4335    }
    4436
    45     public IValueParameter<PercentValue> InstructionMutationProbabilityParameter
    46     {
     37    public IValueParameter<PercentValue> InstructionMutationProbabilityParameter {
    4738      get { return (IValueParameter<PercentValue>)Parameters["InstructionMutationProbability"]; }
    4839    }
    4940
    50     public double InstructionMutationProbability
    51     {
     41    public double InstructionMutationProbability {
    5242      get { return InstructionMutationProbabilityParameter.Value.Value; }
    5343      set { InstructionMutationProbabilityParameter.Value.Value = value; }
    5444    }
    5545
    56     public IValueParameter<PercentValue> InstructionMutationRateParameter
    57     {
     46    public IValueParameter<PercentValue> InstructionMutationRateParameter {
    5847      get { return (IValueParameter<PercentValue>)Parameters["InstructionMutationRate"]; }
    5948    }
    6049
    61     public double InstructionMutationRate
    62     {
     50    public double InstructionMutationRate {
    6351      get { return InstructionMutationRateParameter.Value.Value; }
    6452      set { InstructionMutationRateParameter.Value.Value = value; }
    6553    }
    6654
    67     public IValueParameter<PercentValue> InstructionConstantTweakRateParameter
    68     {
     55    public IValueParameter<PercentValue> InstructionConstantTweakRateParameter {
    6956      get { return (IValueParameter<PercentValue>)Parameters["InstructionConstantTweakRate"]; }
    7057    }
    7158
    72     public double InstructionConstantTweakRate
    73     {
     59    public double InstructionConstantTweakRate {
    7460      get { return InstructionConstantTweakRateParameter.Value.Value; }
    7561      set { InstructionConstantTweakRateParameter.Value.Value = value; }
    7662    }
    7763
    78     public IValueParameter<PercentValue> CloseMutationProbabilityParameter
    79     {
     64    public IValueParameter<PercentValue> CloseMutationProbabilityParameter {
    8065      get { return (IValueParameter<PercentValue>)Parameters["CloseMutationProbability"]; }
    8166    }
    8267
    83     public double CloseMutationProbability
    84     {
     68    public double CloseMutationProbability {
    8569      get { return CloseMutationProbabilityParameter.Value.Value; }
    8670      set { CloseMutationProbabilityParameter.Value.Value = value; }
    8771    }
    8872
    89     public IValueParameter<PercentValue> CloseIncrementRateParameter
    90     {
     73    public IValueParameter<PercentValue> CloseIncrementRateParameter {
    9174      get { return (IValueParameter<PercentValue>)Parameters["CloseIncrementRate"]; }
    9275    }
    9376
    94     public double CloseIncrementRate
    95     {
     77    public double CloseIncrementRate {
    9678      get { return CloseIncrementRateParameter.Value.Value; }
    9779      set { CloseIncrementRateParameter.Value.Value = value; }
    9880    }
    9981
    100     public override bool CanChangeName
    101     {
     82    public override bool CanChangeName {
    10283      get { return false; }
    10384    }
    104     public ILookupParameter<IRandom> RandomParameter
    105     {
     85    public ILookupParameter<IRandom> RandomParameter {
    10686      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    10787    }
    108     public ILookupParameter<PlushVector> PlushVectorParameter
    109     {
     88    public ILookupParameter<PlushVector> PlushVectorParameter {
    11089      get { return (ILookupParameter<PlushVector>)Parameters["PlushVector"]; }
    11190    }
    112     public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter
    113     {
     91    public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter {
    11492      get { return (IValueLookupParameter<IReadOnlyExpressionsConfiguration>)Parameters["Instructions"]; }
    11593    }
    116     public IValueLookupParameter<IReadOnlyErcOptions> ErcOptionsParameter
    117     {
     94    public IValueLookupParameter<IReadOnlyErcOptions> ErcOptionsParameter {
    11895      get { return (IValueLookupParameter<IReadOnlyErcOptions>)Parameters["ErcOptions"]; }
    11996    }
    120     public IValueLookupParameter<PercentValue> InInstructionProbabilityParameter
    121     {
     97    public IValueLookupParameter<PercentValue> InInstructionProbabilityParameter {
    12298      get { return (IValueLookupParameter<PercentValue>)Parameters["InInstructionProbability"]; }
    12399    }
Note: See TracChangeset for help on using the changeset viewer.