Changeset 15771 for branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Crossover
- Timestamp:
- 02/13/18 16:56:35 (7 years ago)
- Location:
- branches/2895_PushGP_GenealogyAnalysis
- Files:
-
- 1 added
- 2 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{1 namespace HeuristicLab.Problems.ProgramSynthesis { 2 2 using System; 3 3 using System.Linq; … … 10 10 using HeuristicLab.Parameters; 11 11 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 12 using HeuristicLab.Problems.ProgramSynthesis.Base.Extensions;13 using HeuristicLab.Problems.ProgramSynthesis.Push.Encoding;14 12 using HeuristicLab.Random; 15 13 … … 49 47 } 50 48 51 public ILookupParameter<IntValue> MaxProgramLengthParameter 52 { 49 public ILookupParameter<IntValue> MaxProgramLengthParameter { 53 50 get { return (ILookupParameter<IntValue>)Parameters["MaxProgramLength"]; } 54 51 } 55 52 56 public int MaxProgramLength 57 { 53 public int MaxProgramLength { 58 54 get { return MaxProgramLengthParameter.ActualValue.Value; } 59 55 set { MaxProgramLengthParameter.ActualValue.Value = value; } 60 56 } 61 57 62 public IValueParameter<PercentValue> AlternationRateParameter 63 { 58 public IValueParameter<PercentValue> AlternationRateParameter { 64 59 get { return (IValueParameter<PercentValue>)Parameters["AlternationRate"]; } 65 60 } 66 61 67 public double AlternationRate 68 { 62 public double AlternationRate { 69 63 get { return AlternationRateParameter.Value.Value; } 70 64 set { AlternationRateParameter.Value.Value = value; } 71 65 } 72 66 73 public IValueParameter<DoubleValue> AlignmentDeviationParameter 74 { 67 public IValueParameter<DoubleValue> AlignmentDeviationParameter { 75 68 get { return (IValueParameter<DoubleValue>)Parameters["AlignmentDeviation"]; } 76 69 } 77 70 78 public double AlignmentDeviation 79 { 71 public double AlignmentDeviation { 80 72 get { return AlignmentDeviationParameter.Value.Value; } 81 73 set { AlignmentDeviationParameter.Value.Value = value; } 82 74 } 83 75 84 public ILookupParameter<IRandom> RandomParameter 85 { 76 public ILookupParameter<IRandom> RandomParameter { 86 77 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 87 78 } 88 public ILookupParameter<ItemArray<PlushVector>> ParentsParameter 89 { 79 public ILookupParameter<ItemArray<PlushVector>> ParentsParameter { 90 80 get { return (ScopeTreeLookupParameter<PlushVector>)Parameters["Parents"]; } 91 81 } 92 public ILookupParameter<PlushVector> ChildParameter 93 { 82 public ILookupParameter<PlushVector> ChildParameter { 94 83 get { return (ILookupParameter<PlushVector>)Parameters["Child"]; } 95 84 } -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Crossover/IPlushCrossover.cs
r15275 r15771 1 namespace HeuristicLab.Problems.ProgramSynthesis .Push.Crossover{1 namespace HeuristicLab.Problems.ProgramSynthesis { 2 2 using HeuristicLab.Core; 3 3 using HeuristicLab.Optimization; 4 using HeuristicLab.Problems.ProgramSynthesis.Push.Encoding;5 4 6 5 public interface IPlushCrossover : IPlushOperator, ICrossover {
Note: See TracChangeset
for help on using the changeset viewer.