Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/06/15 13:24:42 (9 years ago)
Author:
pfleck
Message:

#2350 Fixed Bugs in Steady-State ALPS OperatorGraph and Mover.

File:
1 edited

Legend:

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

    r12142 r12150  
    7272      var variableCreator = new VariableCreator() { Name = "Initialize" };
    7373      var randomScopeProcessor = new RandomLayerProcessor() { Name = "Select a layer" };
     74      var layerPopulationSizeCounter = new SubScopesCounter() { Name = "Count LayerPopulationSize" };
    7475      var isLayerZeroComperator = new Comparator() { Name = "IsLayerZero = Layer == 0" };
    7576      var isLayerZeroBranch = new ConditionalBranch() { Name = "IsLayerZero?" };
     
    9798      var tryMoveUp = new AlpsSsMover() { Name = "Try Move Up" };
    9899      var removeWorkingScope = new LeftReducer() { Name = "Remove Working Scope" };
     100      var incrementEvaluations = new IntCounter() { Name = "incr. EvaluatedSolutions" };
    99101      var incrIterations = new IntCounter() { Name = "Incr. Iterations" };
    100102      var layerAnalyzerProcessor = new UniformSubScopesProcessor();
     
    116118      variableCreator.Successor = randomScopeProcessor;
    117119
    118       randomScopeProcessor.Operator = isLayerZeroComperator;
     120      randomScopeProcessor.Operator = layerPopulationSizeCounter;
     121      randomScopeProcessor.Successor = incrIterations;
     122
     123      layerPopulationSizeCounter.ValueParameter.ActualName = "LayerPopulationSize";
     124      layerPopulationSizeCounter.AccumulateParameter.Value =  new BoolValue(false);
     125      layerPopulationSizeCounter.Successor = isLayerZeroComperator;
    119126
    120127      isLayerZeroComperator.LeftSideParameter.ActualName = "Layer";
     
    164171      selectRandomTargetIndex.LeftSideParameter.ActualName = "TargetIndex";
    165172      selectRandomTargetIndex.MinimumParameter.Value = new IntValue(0);
    166       selectRandomTargetIndex.MaximumParameter.ActualName = "PopulationSize";
     173      selectRandomTargetIndex.MaximumParameter.ActualName = "LayerPopulationSize";
    167174      selectRandomTargetIndex.MaximumParameter.Value = null;
    168175      selectRandomTargetIndex.Successor = copyLayer;
     
    178185
    179186      matingPoolSize.ValueParameter.ActualName = "MatingPoolSize";
     187      matingPoolSize.AccumulateParameter.Value = new BoolValue(false);
    180188      matingPoolSize.Successor = matingPoolSizeMin2;
    181189
     
    206214      tryMoveUp.Successor = removeWorkingScope;
    207215
    208       removeWorkingScope.Successor = incrIterations;
     216      removeWorkingScope.Successor = incrementEvaluations;
     217
     218      incrementEvaluations.Increment = new IntValue(1);
     219      incrementEvaluations.ValueParameter.ActualName = "EvaluatedSolutions";
    209220
    210221      incrIterations.ValueParameter.ActualName = "Iterations";
Note: See TracChangeset for help on using the changeset viewer.