Changeset 5376 for trunk/sources/HeuristicLab.Selection
- Timestamp:
- 01/25/11 17:58:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection/3.3/Replacer.cs
r4722 r5376 83 83 ISelector selectedSelector = SelectedSelectorParameter.ActualValue; 84 84 85 if (replacedSelector != null) {86 replacedSelector.CopySelected = new BoolValue(false);87 replacedSelector .NumberOfSelectedSubScopesParameter.Value = new IntValue(Math.Min(remaining, selected));85 if (replacedSelector == null) { 86 ReplacedSelectorParameter.Value = new RandomSelector(); 87 replacedSelector = ReplacedSelectorParameter.Value; 88 88 } 89 if (selectedSelector != null) { 90 selectedSelector.CopySelected = new BoolValue(false); 91 selectedSelector.NumberOfSelectedSubScopesParameter.Value = new IntValue(Math.Min(remaining, selected)); 89 replacedSelector.CopySelected = new BoolValue(false); 90 replacedSelector.NumberOfSelectedSubScopesParameter.Value = new IntValue(Math.Min(remaining, selected)); 91 92 if (selectedSelector == null) { 93 SelectedSelectorParameter.Value = new RandomSelector(); 94 selectedSelector = SelectedSelectorParameter.Value; 92 95 } 96 selectedSelector.CopySelected = new BoolValue(false); 97 selectedSelector.NumberOfSelectedSubScopesParameter.Value = new IntValue(Math.Min(remaining, selected)); 93 98 94 99 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.