- Timestamp:
- 11/04/15 17:28:03 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithmMainLoop.cs
r13113 r13117 162 162 var mergingReducer = new MergingReducer(); 163 163 var subScopesCounter = new SubScopesCounter(); 164 var reduceToPopulationSizeBranch = new ConditionalBranch() { Name = "ReduceToPopulationSize?" }; 164 165 var countCalculator = new ExpressionCalculator() { Name = "LayerPopulationSize = Min(LayerPopulationSize, PopulationSize)" }; 165 166 var bestSelector = new BestSelector(); … … 180 181 subScopesCounter.ValueParameter.ActualName = "LayerPopulationSize"; 181 182 subScopesCounter.AccumulateParameter.Value = new BoolValue(false); 182 subScopesCounter.Successor = countCalculator; 183 subScopesCounter.Successor = reduceToPopulationSizeBranch; 184 185 reduceToPopulationSizeBranch.ConditionParameter.ActualName = "ReduceToPopulationSize"; 186 reduceToPopulationSizeBranch.TrueBranch = countCalculator; 183 187 184 188 countCalculator.CollectedValues.Add(new LookupParameter<IntValue>("PopulationSize"));
Note: See TracChangeset
for help on using the changeset viewer.