Changeset 10974 for branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Symbolic/GESymbolicRegressionSingleObjectiveProblem.cs
- Timestamp:
- 06/11/14 12:07:15 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Symbolic/GESymbolicRegressionSingleObjectiveProblem.cs
r10968 r10974 35 35 namespace HeuristicLab.Problems.GrammaticalEvolution { 36 36 [Item("Grammatical Evolution Symbolic Regression Problem (single objective)", 37 "Represents a single objective symbolic regression problem, implemented in Grammatical Evolution.")]37 "Represents grammatical evolution for single objective symbolic regression problems.")] 38 38 [StorableClass] 39 39 [Creatable("Problems")] … … 72 72 73 73 ApplyLinearScalingParameter.Value.Value = true; 74 Maximization.Value = true;74 Maximization.Value = Evaluator.Maximization; 75 75 MaximumSymbolicExpressionTreeLength.Value = InitialMaximumTreeLength; 76 76 … … 86 86 87 87 private void RegisterEventHandlers() { 88 // nothing to do 88 // when the ge evaluator itself changes 89 EvaluatorParameter.ValueChanged += (sender, args) => { 90 // register a new hander for the symbreg evaluator in the ge evaluator 91 // hacky because we the evaluator does not have an event for changes of the maximization property 92 EvaluatorParameter.Value.EvaluatorParameter.ValueChanged += 93 (_, __) => Maximization.Value = Evaluator.Maximization; 94 }; 95 EvaluatorParameter.Value.EvaluatorParameter.ValueChanged += 96 (sender, args) => Maximization.Value = Evaluator.Maximization; 89 97 } 90 98
Note: See TracChangeset
for help on using the changeset viewer.