Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/21/17 11:33:53 (7 years ago)
Author:
pkimmesw
Message:

#2665 Testet Problems, Testet error functions, Small fixes, Created HL files

Location:
branches/PushGP/HeuristicLab.PushGP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP

    • Property svn:ignore
      •  

        old new  
        11*.user
         2packages
         3TestResults
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Crossover/AlternationCrossover.cs

    r15289 r15334  
    3131      ChildParameter.ActualName = "PlushVector";
    3232
     33      Parameters.Add(new LookupParameter<IntValue>("MaxProgramLength", "The max length of children"));
     34
    3335      Parameters.Add(new FixedValueParameter<PercentValue>("AlternationRate", "Specifies the probability of switching to another parent.", new PercentValue(0.5)));
    3436      Parameters.Add(new FixedValueParameter<DoubleValue>("AlignmentDeviation", "When alternating between parents, the index at which to continue copying may be offset backward or forward some amount based on a random sample from a normal distribution with mean 0 and standard deviation set by the alignment deviation parameter", new DoubleValue(1.0)));
    35       Parameters.Add(new FixedValueParameter<IntValue>("MaxLength", "The max length of a children", new IntValue(100)));
     37
    3638    }
    3739
     
    4749    }
    4850
    49     public IValueParameter<IntValue> MaxLengthParameter
     51    public ILookupParameter<IntValue> MaxProgramLengthParameter
    5052    {
    51       get { return (IValueParameter<IntValue>)Parameters["MaxLength"]; }
     53      get { return (ILookupParameter<IntValue>)Parameters["MaxProgramLength"]; }
    5254    }
    5355
    54     public int MaxLength
     56    public int MaxProgramLength
    5557    {
    56       get { return MaxLengthParameter.Value.Value; }
    57       set { MaxLengthParameter.Value.Value = value; }
     58      get { return MaxProgramLengthParameter.ActualValue.Value; }
     59      set { MaxProgramLengthParameter.ActualValue.Value = value; }
    5860    }
    5961
     
    98100        ParentsParameter.ActualValue,
    99101        AlternationRate,
    100         MaxLength,
     102        MaxProgramLength,
    101103        AlignmentDeviation);
    102104      return base.InstrumentedApply();
Note: See TracChangeset for help on using the changeset viewer.