Changeset 3489 for trunk/sources/HeuristicLab.Selection
- Timestamp:
- 04/22/10 16:34:44 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection/3.3/OffspringSelector.cs
r3479 r3489 113 113 winners.AddRange(offspring); 114 114 offspring = children.SubScopes[0].SubScopes; // the losers 115 losersCount += offspring.Count; 115 116 while (offspring.Count > 0 && ((1 - successRatio) * populationSize > luckyLosers.Count || 116 117 selectionPressure.Value >= maxSelPress)) { 117 118 luckyLosers.Add(offspring[0]); 118 losersCount++;119 119 offspring.RemoveAt(0); 120 120 } 121 losersCount += offspring.Count;122 children.SubScopes.Clear();123 121 124 122 // calculate actual selection pressure and success ratio … … 140 138 } else { 141 139 // enough children generated 140 children.SubScopes.Clear(); 142 141 while (children.SubScopes.Count < populationSize) { 143 142 if (winners.Count > 0) {
Note: See TracChangeset
for help on using the changeset viewer.