Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/14 09:51:08 (10 years ago)
Author:
pfleck
Message:

#2269 Added LayerPopulationSize variable (for PopulationSizeAnalyzer)

File:
1 edited

Legend:

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

    r11586 r11676  
    3535      get { return (ILookupParameter<IntValue>)Parameters["PopulationSize"]; }
    3636    }
    37     private ILookupParameter<IntValue> NumSubScopesParameter {
    38       get { return (ILookupParameter<IntValue>)Parameters["NumSubScopes"]; }
     37    private ILookupParameter<IntValue> LayerPopulationSizeParameter {
     38      get { return (ILookupParameter<IntValue>)Parameters["LayerPopulationSize"]; }
    3939    }
    4040
     
    5050      : base() {
    5151      Parameters.Add(new LookupParameter<IntValue>("PopulationSize"));
    52       Parameters.Add(new LookupParameter<IntValue>("NumSubScopes"));
     52      Parameters.Add(new LookupParameter<IntValue>("LayerPopulationSize"));
    5353    }
    5454
    5555    public override IOperation Apply() {
    5656      int populationSize = PopulationSizeParameter.ActualValue.Value;
    57       int numSubScopes = NumSubScopesParameter.ActualValue.Value;
     57      int numSubScopes = LayerPopulationSizeParameter.ActualValue.Value;
    5858
    59       NumSubScopesParameter.ActualValue.Value = Math.Min(populationSize, numSubScopes);
     59      LayerPopulationSizeParameter.ActualValue.Value = Math.Min(populationSize, numSubScopes);
    6060
    6161      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.