Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/01/11 17:48:53 (13 years ago)
Author:
mkommend
Message:

#1479: Integrated trunk changes.

Location:
branches/GP.Grammar.Editor/HeuristicLab.Selection/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Grammar.Editor/HeuristicLab.Selection/3.3/GeneralizedRankSelector.cs

    r6377 r6618  
    6363      double pressure = PressureParameter.ActualValue.Value;
    6464
    65       var ordered = qualities.Select((x, index) => new { index, x.Value }).OrderBy(x => x.Value).ToList();
     65      var ordered = qualities.Select((x, index) => new KeyValuePair<int, double>(index, x.Value)).OrderBy(x => x.Value).ToList();
    6666      if (maximization) ordered.Reverse();
    6767
     
    7272
    7373        if (copy) {
    74           selected[i] = (IScope)scopes[ordered[selIdx].index].Clone();
     74          selected[i] = (IScope)scopes[ordered[selIdx].Key].Clone();
    7575        } else {
    76           selected[i] = scopes[ordered[selIdx].index];
    77           scopes.Remove(selected[i]);
     76          int idx = ordered[selIdx].Key;
     77          selected[i] = scopes[idx];
     78          scopes.RemoveAt(idx);
     79          ordered.RemoveAt(selIdx);
     80          for (int j = 0; j < ordered.Count; j++) {
     81            var o = ordered[j];
     82            if (o.Key > idx) ordered[j] = new KeyValuePair<int, double>(o.Key - 1, o.Value);
     83          }
    7884          m--;
    7985        }
  • branches/GP.Grammar.Editor/HeuristicLab.Selection/3.3/HeuristicLabSelectionPlugin.cs.frame

    r6099 r6618  
    2626  /// Plugin class for HeuristicLab.Selection plugin.
    2727  /// </summary>
    28   [Plugin("HeuristicLab.Selection", "3.3.4.$WCREV$")]
     28  [Plugin("HeuristicLab.Selection", "3.3.5.$WCREV$")]
    2929  [PluginFile("HeuristicLab.Selection-3.3.dll", PluginFileType.Assembly)]
    3030  [PluginDependency("HeuristicLab.Collections", "3.3")]
  • branches/GP.Grammar.Editor/HeuristicLab.Selection/3.3/Properties/AssemblyInfo.frame

    r6099 r6618  
    5454// by using the '*' as shown below:
    5555[assembly: AssemblyVersion("3.3.0.0")]
    56 [assembly: AssemblyFileVersion("3.3.4.$WCREV$")]
     56[assembly: AssemblyFileVersion("3.3.5.$WCREV$")]
Note: See TracChangeset for help on using the changeset viewer.