Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/09/15 10:32:47 (8 years ago)
Author:
pfleck
Message:

#2350

  • Changed the SteadyStateMatingPoolCreator to put the mating pool in the working scope.
  • Added the ScopeIndexAssigner for setting the correct layer number.
  • Adapted the AlpsSsGeneticAlgorithmMainLoop.
File:
1 edited

Legend:

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

    r12157 r12159  
    135135      var layerProcessor = new /*Layer*/UniformSubScopesProcessor();
    136136      var layerVariableCreator = new VariableCreator() { Name = "Initialize Layer" };
     137      var layerNumberCreator = new ScopeIndexAssigner() { Name = "Create Layer Number" };
    137138      var layerSolutionsCreator = new SolutionsCreator();
    138139      var initializeAgeProcessor = new UniformSubScopesProcessor();
     
    154155      layersProcessor.TargetScopeParameter.ActualName = "Layers";
    155156      layersProcessor.Operator = layerCreator;
     157      layersProcessor.Successor = initializeEvaluatedSolutions;
    156158
    157159      layerCreator.NumberOfSubScopesParameter.ActualName = "NumberOfLayers";
     
    160162
    161163      layerProcessor.Operator = layerVariableCreator;
    162       layerProcessor.Successor = initializeEvaluatedSolutions;
    163164
    164165      layerVariableCreator.CollectedValues.Add(new ValueParameter<ResultCollection>("LayerResults"));
    165       layerVariableCreator.Successor = layerSolutionsCreator;
     166      layerVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Layer"));
     167      layerVariableCreator.Successor = layerNumberCreator;
     168
     169      layerNumberCreator.ValueParameter.ActualName = "Layer";
     170      layerNumberCreator.Successor = layerSolutionsCreator;
    166171
    167172      layerSolutionsCreator.NumberOfSolutionsParameter.ActualName = LayerSizeParameter.Name;
Note: See TracChangeset for help on using the changeset viewer.