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/LayerUpdator.cs

    r12992 r13046  
    6464      var newLayerLayerProcessor = new UniformSubScopesProcessor();
    6565      var newLayerReducer = new MergingReducer();
    66       var layerInitializer = new Assigner() { Name = "Init Layer" };
    67       var correctAgeProcessor = new UniformSubScopesProcessor() { Name = "Hack: Decrement Age" };
    68       var correctAgeDecrementor = new IntCounter() { Name = "Age = Age - 1" };
    6966      var incrEvaluatedSolutionsForNewLayer = new SubScopesCounter() { Name = "Update EvaluatedSolutions" };
    7067      var newResultCollectionAssigner = new Assigner() { Name = "Empty Results" };
     
    131128      newLayerReducer.Successor = incrOpenLayers;
    132129
    133       layerInitializer.LeftSideParameter.ActualName = "Layer";
    134       layerInitializer.RightSideParameter.ActualName = "OpenLayers";
    135       layerInitializer.Successor = correctAgeProcessor;
    136 
    137       correctAgeProcessor.Operator = correctAgeDecrementor;
    138       correctAgeProcessor.Successor = incrEvaluatedSolutionsForNewLayer;
    139 
    140       correctAgeDecrementor.Increment = new IntValue(-1);
    141       correctAgeDecrementor.ValueParameter.ActualName = "Age";
    142 
    143130      incrEvaluatedSolutionsForNewLayer.ValueParameter.ActualName = "EvaluatedSolutions";
    144131      incrEvaluatedSolutionsForNewLayer.AccumulateParameter.Value = new BoolValue(true);
     
    179166      initializeAgeProsessor.Successor = incrEvaluatedSolutionsAfterReseeding;
    180167
    181       initializeAge.CollectedValues.Add(new ValueParameter<IntValue>("Age", new IntValue(0)));
     168      initializeAge.CollectedValues.Add(new ValueParameter<DoubleValue>("Age", new DoubleValue(0)));
    182169      initializeAge.Successor = null;
    183170
Note: See TracChangeset for help on using the changeset viewer.