Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/10/13 15:56:35 (11 years ago)
Author:
bburlacu
Message:

#1772: Re-added tracking code (record copies of individuals in the GlobalCloneMap)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Selection/3.3/ProportionalSelector.cs

    r9456 r9943  
    104104          currentQuality += list[index];
    105105        }
    106         if (copy)
     106        if (copy) {
    107107          selected[i] = (IScope)scopes[index].Clone();
    108         else {
     108          var original = scopes[index].Variables.First().Value;
     109          var clone = selected[i].Variables.First().Value;
     110          GlobalCloneMap.Add(clone, original);
     111        } else {
    109112          selected[i] = scopes[index];
    110113          scopes.RemoveAt(index);
Note: See TracChangeset for help on using the changeset viewer.