Changeset 3750 for trunk/sources/HeuristicLab.Algorithms.TabuSearch
- Timestamp:
- 05/10/10 17:19:34 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearch.cs
r3689 r3750 236 236 ParameterizeTabuChecker(); 237 237 ParameterizeAnalyzers(); 238 ParameterizeIterationBasedOperators(); 238 239 Problem.Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged); 239 240 base.OnProblemChanged(); … … 278 279 ParameterizeTabuChecker(); 279 280 ParameterizeAnalyzers(); 281 ParameterizeIterationBasedOperators(); 280 282 base.Problem_OperatorsChanged(sender, e); 281 283 } … … 470 472 } 471 473 } 474 private void ParameterizeIterationBasedOperators() { 475 if (Problem != null) { 476 foreach (IIterationBasedOperator op in Problem.Operators.OfType<IIterationBasedOperator>()) { 477 op.IterationsParameter.ActualName = "Iterations"; 478 op.MaximumIterationsParameter.ActualName = MaximumIterationsParameter.Name; 479 } 480 } 481 } 472 482 #endregion 473 483 } -
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearchMainLoop.cs
r3715 r3750 148 148 ConditionalBranch iterationsTermination = new ConditionalBranch(); 149 149 150 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Iterations", new IntValue(0))); 150 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Iterations", new IntValue(0))); // Class TabuSearch expects this to be called Iterations 151 151 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("EvaluatedMoves", new IntValue(0))); 152 152 variableCreator.CollectedValues.Add(new ValueParameter<BoolValue>("EmptyNeighborhood", new BoolValue(false)));
Note: See TracChangeset
for help on using the changeset viewer.