Changeset 15032 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/PushProblem.cs
- Timestamp:
- 06/12/17 14:11:43 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/PushProblem.cs
r15017 r15032 10 10 using HeuristicLab.Data; 11 11 using HeuristicLab.Encodings.IntegerVectorEncoding; 12 using HeuristicLab.Problems.ProgramSynthesis.Push.Analyzer; 12 13 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 13 14 using HeuristicLab.Problems.ProgramSynthesis.Push.Problem.BenchmarkSuite; … … 40 41 InitParameters(); 41 42 InitEncoding(); 43 InitOperators(); 42 44 } 43 45 … … 85 87 private const string InitProgramLengthParameterName = "InitProgramLength"; 86 88 private const string InitProgramLengthParameterDescription = "This is the initial size of a push program."; 89 private const string PushConfigurationParameterName = "PushConfiguration"; 87 90 88 91 public const string CasesScopeParameterName = "CaseQualities"; … … 96 99 } 97 100 101 if (!Parameters.ContainsKey(PushConfigurationParameterName)) 102 Parameters.Add(new ValueParameter<IReadOnlyPushConfiguration>(PushConfigurationParameterName, config) { 103 Hidden = true 104 }); 105 98 106 if (!Parameters.ContainsKey(InitProgramLengthParameterName)) { 99 107 Parameters.Add(new FixedValueParameter<IntValue>( … … 123 131 Encoding.Bounds[0, 1] = config.EnabledExpressions.Count; 124 132 Encoding.Length = config.MaxPointsInProgram; 133 } 134 135 private void InitOperators() { 136 Operators.Add(new PushExpressionFrequencyAnalyzer()); 125 137 } 126 138
Note: See TracChangeset
for help on using the changeset viewer.