Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/21/15 17:42:18 (9 years ago)
Author:
pfleck
Message:

#2269

  • Changed the age type from int to double.
  • Changed EldersSelector to make use of a ScopeTreeLookupParameter.
  • Removed unused operators in LayerUpdator.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithmMainLoop.cs

    r13035 r13046  
    216216      // Increment ages of all individuals after replacement
    217217      var incrementAgeProcessor = new UniformSubScopesProcessor();
    218       var ageIncrementor = new IntCounter() { Name = "Increment Age" };
     218      var ageIncrementor = new DoubleCounter() { Name = "Increment Age" };
    219219      replacementBranch.Successor = incrementAgeProcessor;
    220220      incrementAgeProcessor.Operator = ageIncrementor;
    221221      incrementAgeProcessor.Successor = null;
    222222      ageIncrementor.ValueParameter.ActualName = "Age";
    223       ageIncrementor.Increment = new IntValue(1);
    224       //ageIncrementor.Successor = null;
     223      ageIncrementor.Increment = new DoubleValue(1.0);
    225224
    226225      // Insert AgeCalculator between crossover and its successor
Note: See TracChangeset for help on using the changeset viewer.