- Timestamp:
- 02/19/10 02:15:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection/3.3/LinearRankSelector.cs
r2818 r2830 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using System.Linq; 23 24 using HeuristicLab.Core; … … 38 39 } 39 40 40 protected override ScopeList Select(ScopeListscopes) {41 protected override IScope[] Select(List<IScope> scopes) { 41 42 int count = NumberOfSelectedSubScopesParameter.ActualValue.Value; 42 43 bool copy = CopySelectedParameter.Value.Value; … … 44 45 bool maximization = MaximizationParameter.ActualValue.Value; 45 46 ItemArray<DoubleData> qualities = QualityParameter.ActualValue; 46 ScopeList selected = new ScopeList();47 IScope[] selected = new IScope[count]; 47 48 48 49 // create a list for each scope that contains the scope's index in the original scope list and its lots … … 64 65 } 65 66 if (copy) 66 selected .Add((IScope)scopes[list[index].index].Clone());67 selected[i] = (IScope)scopes[list[index].index].Clone(); 67 68 else { 68 selected .Add(scopes[list[index].index]);69 selected[i] = scopes[list[index].index]; 69 70 scopes.RemoveAt(list[index].index); 70 71 lotSum -= list[index].lots;
Note: See TracChangeset
for help on using the changeset viewer.