Changeset 297
- Timestamp:
- 06/05/08 12:09:22 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection.OffspringSelection/OffspringSelector.cs
r296 r297 106 106 // only keep the child if we have not filled up the pool or if we reached the 107 107 // selection pressure limit in which case we have to keep more lucky losers than usual 108 if ((1 - successRatioLimit) * parents.SubScopes.Count > =badChildren.Count ||108 if ((1 - successRatioLimit) * parents.SubScopes.Count > badChildren.Count || 109 109 selectionPressure.Data >= selectionPressureLimit) { 110 110 badChildren.Add(child); … … 116 116 // calculate actual selection pressure and success ratio 117 117 selectionPressure.Data += (goodCount + badCount) / ((double)parents.SubScopes.Count); 118 successRatio.Data = goodC ount / ((double)parents.SubScopes.Count);118 successRatio.Data = goodChildren.Count / ((double)parents.SubScopes.Count); 119 119 120 120 // check if enough children have been generated
Note: See TracChangeset
for help on using the changeset viewer.