- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection/3.3/OffspringSelector.cs
r3854 r4068 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Linq;25 23 using HeuristicLab.Core; 26 24 using HeuristicLab.Data; … … 107 105 OffspringPopulationWinnersParameter.ActualValue = successfulOffspring; 108 106 } else successfulOffspring = OffspringPopulationWinnersParameter.ActualValue; 109 107 110 108 int worseOffspringNeeded = (int)((1 - successRatio) * populationSize) - (population.Count - successfulOffspring.Value); 111 109 int successfulOffspringAdded = 0; … … 150 148 scope.SubScopes.Remove(parents); 151 149 scope.SubScopes.Remove(offspring); 152 while (parents.SubScopes.Count > 0)150 while (parents.SubScopes.Count > 0) 153 151 scope.SubScopes.Add(parents.SubScopes[0]); 154 152
Note: See TracChangeset
for help on using the changeset viewer.