- Timestamp:
- 07/23/20 16:21:55 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.GradientDescent/3.3/Lbfgs.cs
r17226 r17695 23 23 using System; 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Analysis; 26 27 using HeuristicLab.Common; … … 31 32 using HeuristicLab.Optimization; 32 33 using HeuristicLab.Parameters; 33 using HEAL.Attic;34 34 using HeuristicLab.Random; 35 35 … … 199 199 if (Problem != null) { 200 200 RegisterEvents(); 201 solutionCreator.OperatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;201 solutionCreator.OperatorParameter.ActualName = SolutionCreatorParameter.Name; 202 202 solutionCreator.OperatorParameter.Hidden = true; 203 203 evaluator.OperatorParameter.ActualName = Problem.EvaluatorParameter.Name; … … 208 208 } 209 209 210 protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) {211 base. Problem_SolutionCreatorChanged(sender, e);210 protected override void SolutionCreatorOnChanged() { 211 base.SolutionCreatorOnChanged(); 212 212 RegisterSolutionCreatorEvents(); 213 213 ParameterizeOperators(); … … 223 223 base.Problem_OperatorsChanged(sender, e); 224 224 RegisterEvents(); 225 solutionCreator.OperatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;225 solutionCreator.OperatorParameter.ActualName = SolutionCreatorParameter.Name; 226 226 solutionCreator.OperatorParameter.Hidden = true; 227 227 evaluator.OperatorParameter.ActualName = Problem.EvaluatorParameter.Name; … … 232 232 233 233 private void RegisterSolutionCreatorEvents() { 234 var realVectorCreator = Problem.SolutionCreator as IRealVectorCreator;234 var realVectorCreator = SolutionCreator as IRealVectorCreator; 235 235 // ignore if we have a different kind of problem 236 236 if (realVectorCreator != null) { … … 245 245 246 246 protected override void OnStarted() { 247 var realVectorCreator = Problem.SolutionCreator as IRealVectorCreator;247 var realVectorCreator = SolutionCreator as IRealVectorCreator; 248 248 // must catch the case that user loaded an unsupported problem 249 249 if (realVectorCreator == null) … … 269 269 270 270 private void ParameterizeOperators() { 271 var realVectorCreator = Problem.SolutionCreator as IRealVectorCreator;271 var realVectorCreator = SolutionCreator as IRealVectorCreator; 272 272 // ignore if we have a different kind of problem 273 273 if (realVectorCreator != null) {
Note: See TracChangeset
for help on using the changeset viewer.