Changeset 15771 for branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/SolutionCreator/PushSolutionCreator.cs
- Timestamp:
- 02/13/18 16:56:35 (6 years ago)
- Location:
- branches/2895_PushGP_GenealogyAnalysis
- Files:
-
- 1 added
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/SolutionCreator/PushSolutionCreator.cs
r15289 r15771 1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.SolutionCreator { 1 using HeuristicLab.Common; 2 using HeuristicLab.Core; 3 using HeuristicLab.Data; 4 using HeuristicLab.Encodings.IntegerVectorEncoding; 5 using HeuristicLab.Parameters; 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 2 7 3 using HeuristicLab.Common; 4 using HeuristicLab.Core; 5 using HeuristicLab.Data; 6 using HeuristicLab.Encodings.IntegerVectorEncoding; 7 using HeuristicLab.Parameters; 8 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 9 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc; 10 using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration; 11 8 namespace HeuristicLab.Problems.ProgramSynthesis { 12 9 /// <summary> 13 10 /// Generates a new random integer vector with each element uniformly distributed in a specified range. … … 45 42 46 43 47 public IValueParameter<ErcOptions> ErcOptionsParameter 48 { 44 public IValueParameter<ErcOptions> ErcOptionsParameter { 49 45 get { return (IValueParameter<ErcOptions>)Parameters[ERC_OPTIONS_PARAMETER_NAME]; } 50 46 } 51 47 52 public ErcOptions ErcOptions 53 { 48 public ErcOptions ErcOptions { 54 49 get { return ErcOptionsParameter.Value; } 55 set 56 { 50 set { 57 51 ErcOptionsParameter.Value = value; 58 52 } 59 53 } 60 54 61 public IValueParameter<IntValue> MinLengthParameter 62 { 55 public IValueParameter<IntValue> MinLengthParameter { 63 56 get { return (IValueParameter<IntValue>)Parameters[MIN_LENGTH_PARAMETER_NAME]; } 64 57 } 65 58 66 public int MinLength 67 { 59 public int MinLength { 68 60 get { return MinLengthParameter.Value.Value; } 69 61 set { MinLengthParameter.Value.Value = value; } 70 62 } 71 63 72 public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter 73 { 64 public IValueLookupParameter<IReadOnlyExpressionsConfiguration> InstructionsParameter { 74 65 get { return (IValueLookupParameter<IReadOnlyExpressionsConfiguration>)Parameters["Instructions"]; } 75 66 } … … 86 77 //} 87 78 88 public IValueParameter<PercentValue> InInstructionProbabilityParameter 89 { 79 public IValueParameter<PercentValue> InInstructionProbabilityParameter { 90 80 get { return (IValueParameter<PercentValue>)Parameters[IN_INSTRUCTION_PROBABILITY]; } 91 81 } 92 82 93 public double InInstructionProbability 94 { 83 public double InInstructionProbability { 95 84 get { return InInstructionProbabilityParameter.Value.Value; } 96 85 set { InInstructionProbabilityParameter.Value.Value = value; }
Note: See TracChangeset
for help on using the changeset viewer.