- Timestamp:
- 02/16/15 20:14:52 (10 years ago)
- Location:
- branches/ALPS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS
- Property svn:mergeinfo changed
/stable merged: 12008-12010 /trunk/sources merged: 11978,11982-11984,11987-11994,11996,11998-12004,12012,12015-12016
- Property svn:mergeinfo changed
-
branches/ALPS/HeuristicLab.Optimization
- Property svn:mergeinfo changed
/stable/HeuristicLab.Optimization merged: 12008-12009 /trunk/sources/HeuristicLab.Optimization merged: 11982,11990,11996,11998,12012
- Property svn:mergeinfo changed
-
branches/ALPS/HeuristicLab.Optimization/3.3/BasicProblems/BasicProblem.cs
r11970 r12018 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 67 67 Parameters.Add(new ValueParameter<TEncoding>("Encoding", "Describes the configuration of the encoding, what the variables are called, what type they are and their bounds if any.")); 68 68 oldEncoding = Encoding; 69 if(Encoding != null) Parameterize(); 69 70 RegisterEvents(); 70 71 } … … 91 92 92 93 protected virtual void OnEncodingChanged() { 94 Parameterize(); 95 96 OnOperatorsChanged(); 97 OnReset(); 98 } 99 100 private void Parameterize() { 93 101 if (oldEncoding != null) { 94 102 AdaptEncodingOperators(oldEncoding, Encoding); … … 108 116 Parameters.Remove(SolutionCreatorParameter); 109 117 Parameters.Add(solutionCreatorParam); 110 111 //TODO register solution creator changed event, change access modifier to private 112 //((IValueParameter)solutionCreatorParam).ValueChanged += SolutionCreatorParameter_ValueChanged; 118 ((IValueParameter)solutionCreatorParam).ValueChanged += SolutionCreatorParameter_ValueChanged; 113 119 114 120 var multiEncoding = Encoding as MultiEncoding; 115 121 if (multiEncoding != null) multiEncoding.EncodingsChanged += MultiEncodingOnEncodingsChanged; 116 117 OnOperatorsChanged();118 OnReset();119 122 } 120 123
Note: See TracChangeset
for help on using the changeset viewer.