Changeset 3750 for trunk/sources/HeuristicLab.Algorithms.LocalSearch
- Timestamp:
- 05/10/10 17:19:34 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearch.cs
r3689 r3750 197 197 ParameterizeSolutionsCreator(); 198 198 ParameterizeMainLoop(); 199 ParameterizeMoveEvaluators();200 ParameterizeMoveMakers();201 ParameterizeAnalyzers();202 199 UpdateMoveGenerator(); 203 200 UpdateMoveParameters(); 204 201 UpdateAnalyzers(); 202 ParameterizeMoveEvaluators(); 203 ParameterizeMoveMakers(); 204 ParameterizeAnalyzers(); 205 ParameterizeIterationBasedOperators(); 205 206 Problem.Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged); 206 207 base.OnProblemChanged(); … … 236 237 ParameterizeMoveMakers(); 237 238 ParameterizeAnalyzers(); 239 ParameterizeIterationBasedOperators(); 238 240 base.Problem_OperatorsChanged(sender, e); 239 241 } … … 366 368 } 367 369 } 370 private void ParameterizeIterationBasedOperators() { 371 if (Problem != null) { 372 foreach (IIterationBasedOperator op in Problem.Operators.OfType<IIterationBasedOperator>()) { 373 op.IterationsParameter.ActualName = "Iterations"; 374 op.MaximumIterationsParameter.ActualName = MaximumIterationsParameter.Name; 375 } 376 } 377 } 368 378 #endregion 369 379 } -
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearchMainLoop.cs
r3715 r3750 137 137 ConditionalBranch iterationsTermination = new ConditionalBranch(); 138 138 139 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Iterations", new IntValue(0))); 139 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Iterations", new IntValue(0))); // Class LocalSearch expects this to be called Iterations 140 140 variableCreator.CollectedValues.Add(new ValueParameter<DoubleValue>("BestQuality", new DoubleValue(0))); 141 141 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("EvaluatedMoves", new IntValue(0)));
Note: See TracChangeset
for help on using the changeset viewer.