Changeset 15771 for branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Manipulator
- 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/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; 1 using HeuristicLab.Core; 2 using HeuristicLab.Data; 3 using HeuristicLab.Optimization; 8 4 5 namespace HeuristicLab.Problems.ProgramSynthesis { 9 6 public interface IPlushManipulator : IPlushOperator, IManipulator { 10 7 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 { 1 using HeuristicLab.Common; 2 using HeuristicLab.Core; 3 using HeuristicLab.Data; 4 using HeuristicLab.Operators; 5 using HeuristicLab.Optimization; 6 using HeuristicLab.Parameters; 7 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 3 8 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 9 namespace HeuristicLab.Problems.ProgramSynthesis { 18 10 /// <summary> 19 11 /// Uniformly distributed change of a single position of an integer vector. … … 43 35 } 44 36 45 public IValueParameter<PercentValue> InstructionMutationProbabilityParameter 46 { 37 public IValueParameter<PercentValue> InstructionMutationProbabilityParameter { 47 38 get { return (IValueParameter<PercentValue>)Parameters["InstructionMutationProbability"]; } 48 39 } 49 40 50 public double InstructionMutationProbability 51 { 41 public double InstructionMutationProbability { 52 42 get { return InstructionMutationProbabilityParameter.Value.Value; } 53 43 set { InstructionMutationProbabilityParameter.Value.Value = value; } 54 44 } 55 45 56 public IValueParameter<PercentValue> InstructionMutationRateParameter 57 { 46 public IValueParameter<PercentValue> InstructionMutationRateParameter { 58 47 get { return (IValueParameter<PercentValue>)Parameters["InstructionMutationRate"]; } 59 48 } 60 49 61 public double InstructionMutationRate 62 { 50 public double InstructionMutationRate { 63 51 get { return InstructionMutationRateParameter.Value.Value; } 64 52 set { InstructionMutationRateParameter.Value.Value = value; } 65 53 } 66 54 67 public IValueParameter<PercentValue> InstructionConstantTweakRateParameter 68 { 55 public IValueParameter<PercentValue> InstructionConstantTweakRateParameter { 69 56 get { return (IValueParameter<PercentValue>)Parameters["InstructionConstantTweakRate"]; } 70 57 } 71 58 72 public double InstructionConstantTweakRate 73 { 59 public double InstructionConstantTweakRate { 74 60 get { return InstructionConstantTweakRateParameter.Value.Value; } 75 61 set { InstructionConstantTweakRateParameter.Value.Value = value; } 76 62 } 77 63 78 public IValueParameter<PercentValue> CloseMutationProbabilityParameter 79 { 64 public IValueParameter<PercentValue> CloseMutationProbabilityParameter { 80 65 get { return (IValueParameter<PercentValue>)Parameters["CloseMutationProbability"]; } 81 66 } 82 67 83 public double CloseMutationProbability 84 { 68 public double CloseMutationProbability { 85 69 get { return CloseMutationProbabilityParameter.Value.Value; } 86 70 set { CloseMutationProbabilityParameter.Value.Value = value; } 87 71 } 88 72 89 public IValueParameter<PercentValue> CloseIncrementRateParameter 90 { 73 public IValueParameter<PercentValue> CloseIncrementRateParameter { 91 74 get { return (IValueParameter<PercentValue>)Parameters["CloseIncrementRate"]; } 92 75 } 93 76 94 public double CloseIncrementRate 95 { 77 public double CloseIncrementRate { 96 78 get { return CloseIncrementRateParameter.Value.Value; } 97 79 set { CloseIncrementRateParameter.Value.Value = value; } 98 80 } 99 81 100 public override bool CanChangeName 101 { 82 public override bool CanChangeName { 102 83 get { return false; } 103 84 } 104 public ILookupParameter<IRandom> RandomParameter 105 { 85 public ILookupParameter<IRandom> RandomParameter { 106 86 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 107 87 } 108 public ILookupParameter<PlushVector> PlushVectorParameter 109 { 88 public ILookupParameter<PlushVector> PlushVectorParameter { 110 89 get { return (ILookupParameter<PlushVector>)Parameters["PlushVector"]; } 111 90 } 112 public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter 113 { 91 public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter { 114 92 get { return (IValueLookupParameter<IReadOnlyExpressionsConfiguration>)Parameters["Instructions"]; } 115 93 } 116 public IValueLookupParameter<IReadOnlyErcOptions> ErcOptionsParameter 117 { 94 public IValueLookupParameter<IReadOnlyErcOptions> ErcOptionsParameter { 118 95 get { return (IValueLookupParameter<IReadOnlyErcOptions>)Parameters["ErcOptions"]; } 119 96 } 120 public IValueLookupParameter<PercentValue> InInstructionProbabilityParameter 121 { 97 public IValueLookupParameter<PercentValue> InInstructionProbabilityParameter { 122 98 get { return (IValueLookupParameter<PercentValue>)Parameters["InInstructionProbability"]; } 123 99 }
Note: See TracChangeset
for help on using the changeset viewer.