Changeset 3750 for trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
- Timestamp:
- 05/10/10 17:19:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r3704 r3750 304 304 ParameterizeSelectors(); 305 305 ParameterizeAnalyzers(); 306 ParameterizeIterationBasedOperators(); 306 307 UpdateCrossovers(); 307 308 UpdateMutators(); … … 327 328 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 328 329 foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op); 330 ParameterizeIterationBasedOperators(); 329 331 UpdateCrossovers(); 330 332 UpdateMutators(); … … 431 433 } 432 434 } 435 private void ParameterizeIterationBasedOperators() { 436 if (Problem != null) { 437 foreach (IIterationBasedOperator op in Problem.Operators.OfType<IIterationBasedOperator>()) { 438 op.IterationsParameter.ActualName = "Generations"; 439 op.MaximumIterationsParameter.ActualName = "MaximumGenerations"; 440 } 441 } 442 } 433 443 private void UpdateCrossovers() { 434 444 ICrossover oldCrossover = CrossoverParameter.Value;
Note: See TracChangeset
for help on using the changeset viewer.