Changeset 15334 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Crossover
- Timestamp:
- 08/21/17 11:33:53 (7 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP
- Property svn:ignore
-
old new 1 1 *.user 2 packages 3 TestResults
-
- Property svn:ignore
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Crossover/AlternationCrossover.cs
r15289 r15334 31 31 ChildParameter.ActualName = "PlushVector"; 32 32 33 Parameters.Add(new LookupParameter<IntValue>("MaxProgramLength", "The max length of children")); 34 33 35 Parameters.Add(new FixedValueParameter<PercentValue>("AlternationRate", "Specifies the probability of switching to another parent.", new PercentValue(0.5))); 34 36 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 36 38 } 37 39 … … 47 49 } 48 50 49 public I ValueParameter<IntValue> MaxLengthParameter51 public ILookupParameter<IntValue> MaxProgramLengthParameter 50 52 { 51 get { return (I ValueParameter<IntValue>)Parameters["MaxLength"]; }53 get { return (ILookupParameter<IntValue>)Parameters["MaxProgramLength"]; } 52 54 } 53 55 54 public int Max Length56 public int MaxProgramLength 55 57 { 56 get { return Max LengthParameter.Value.Value; }57 set { Max LengthParameter.Value.Value = value; }58 get { return MaxProgramLengthParameter.ActualValue.Value; } 59 set { MaxProgramLengthParameter.ActualValue.Value = value; } 58 60 } 59 61 … … 98 100 ParentsParameter.ActualValue, 99 101 AlternationRate, 100 Max Length,102 MaxProgramLength, 101 103 AlignmentDeviation); 102 104 return base.InstrumentedApply();
Note: See TracChangeset
for help on using the changeset viewer.