- Timestamp:
- 05/03/11 19:52:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram/HeuristicLab.Problems.QuadraticAssignment/3.3/QuadraticAssignmentProblem.cs
r6089 r6115 164 164 Parameters.Add(new OptionalValueParameter<ItemList<Permutation>>("BestKnownSolutions", "The list of best known solutions which is updated whenever a new better solution is found or may be the optimal solution if it is known beforehand.", null)); 165 165 } 166 if (Parameters.ContainsKey("DistanceMatrix")) { 167 DoubleMatrix bla = ((ValueParameter<DoubleMatrix>)Parameters["DistanceMatrix"]).Value; 168 Parameters.Remove("DistanceMatrix"); 169 Parameters.Add(new ValueParameter<DoubleMatrix>("Distances", "bla", bla)); 170 } 171 AttachEventHandlers(); 166 172 #endregion 167 173 } … … 252 258 253 259 #region Helpers 254 [StorableHook(HookType.AfterDeserialization)]255 private void AfterDeserializationHook() {256 AttachEventHandlers();257 }258 259 260 private void AttachEventHandlers() { 260 261 SolutionCreator.PermutationParameter.ActualNameChanged += new EventHandler(SolutionCreator_PermutationParameter_ActualNameChanged);
Note: See TracChangeset
for help on using the changeset viewer.