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/Crossover/AlternationCrossover.cs

    r15334 r15771  
    1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.Crossover {
     1namespace HeuristicLab.Problems.ProgramSynthesis {
    22  using System;
    33  using System.Linq;
     
    1010  using HeuristicLab.Parameters;
    1111  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    12   using HeuristicLab.Problems.ProgramSynthesis.Base.Extensions;
    13   using HeuristicLab.Problems.ProgramSynthesis.Push.Encoding;
    1412  using HeuristicLab.Random;
    1513
     
    4947    }
    5048
    51     public ILookupParameter<IntValue> MaxProgramLengthParameter
    52     {
     49    public ILookupParameter<IntValue> MaxProgramLengthParameter {
    5350      get { return (ILookupParameter<IntValue>)Parameters["MaxProgramLength"]; }
    5451    }
    5552
    56     public int MaxProgramLength
    57     {
     53    public int MaxProgramLength {
    5854      get { return MaxProgramLengthParameter.ActualValue.Value; }
    5955      set { MaxProgramLengthParameter.ActualValue.Value = value; }
    6056    }
    6157
    62     public IValueParameter<PercentValue> AlternationRateParameter
    63     {
     58    public IValueParameter<PercentValue> AlternationRateParameter {
    6459      get { return (IValueParameter<PercentValue>)Parameters["AlternationRate"]; }
    6560    }
    6661
    67     public double AlternationRate
    68     {
     62    public double AlternationRate {
    6963      get { return AlternationRateParameter.Value.Value; }
    7064      set { AlternationRateParameter.Value.Value = value; }
    7165    }
    7266
    73     public IValueParameter<DoubleValue> AlignmentDeviationParameter
    74     {
     67    public IValueParameter<DoubleValue> AlignmentDeviationParameter {
    7568      get { return (IValueParameter<DoubleValue>)Parameters["AlignmentDeviation"]; }
    7669    }
    7770
    78     public double AlignmentDeviation
    79     {
     71    public double AlignmentDeviation {
    8072      get { return AlignmentDeviationParameter.Value.Value; }
    8173      set { AlignmentDeviationParameter.Value.Value = value; }
    8274    }
    8375
    84     public ILookupParameter<IRandom> RandomParameter
    85     {
     76    public ILookupParameter<IRandom> RandomParameter {
    8677      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    8778    }
    88     public ILookupParameter<ItemArray<PlushVector>> ParentsParameter
    89     {
     79    public ILookupParameter<ItemArray<PlushVector>> ParentsParameter {
    9080      get { return (ScopeTreeLookupParameter<PlushVector>)Parameters["Parents"]; }
    9181    }
    92     public ILookupParameter<PlushVector> ChildParameter
    93     {
     82    public ILookupParameter<PlushVector> ChildParameter {
    9483      get { return (ILookupParameter<PlushVector>)Parameters["Child"]; }
    9584    }
Note: See TracChangeset for help on using the changeset viewer.