- Timestamp:
- 03/18/11 15:20:24 (14 years ago)
- Location:
- branches/VNS/HeuristicLab.Algorithms.VariableNeighborhoodSearch/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VNS/HeuristicLab.Algorithms.VariableNeighborhoodSearch/3.3/IShakingOperator.cs
r5642 r5752 29 29 namespace HeuristicLab.Algorithms.VariableNeighborhoodSearch { 30 30 public interface IShakingOperator: IManipulator { 31 void Parameterize(IProblem problem);31 void OnProblemChanged(IProblem problem); 32 32 } 33 33 } -
branches/VNS/HeuristicLab.Algorithms.VariableNeighborhoodSearch/3.3/ShakingOperator.cs
r5642 r5752 59 59 } 60 60 61 public void Parameterize(IProblem problem) {61 public void OnProblemChanged(IProblem problem) { 62 62 Operators.Clear(); 63 63 -
branches/VNS/HeuristicLab.Algorithms.VariableNeighborhoodSearch/3.3/VariableNeighborhoodSearch.cs
r5735 r5752 143 143 Problem.Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged); 144 144 } 145 LocalImprovementParameter.ValueChanged += new EventHandler(LocalImprovementParameter_ValueChanged); 145 146 } 146 147 … … 186 187 ParameterizeVNSMainLoop(); 187 188 ParameterizeAnalyzers(); 189 } 190 191 void LocalImprovementParameter_ValueChanged(object sender, EventArgs e) { 192 if (LocalImprovementParameter.Value != null) 193 LocalImprovementParameter.Value.OnProblemChanged(Problem); 188 194 } 189 195 #endregion … … 264 270 ShakingParameter.Value = (IShakingOperator)Activator.CreateInstance(genericType, new object[]{}); 265 271 266 ShakingParameter.Value. Parameterize(Problem);272 ShakingParameter.Value.OnProblemChanged(Problem); 267 273 } 268 274 private void UpdateLocalImprovementOperator() {
Note: See TracChangeset
for help on using the changeset viewer.