Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/12 16:17:01 (12 years ago)
Author:
jkarder
Message:

#1247: added duplication control

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RAPGA/HeuristicLab.Algorithms.RAPGA/3.3/RAPGAMainLoop.cs

    r8330 r8349  
    151151      ConditionalSelector conditionalSelector = new ConditionalSelector();
    152152      RightReducer rightReducer1 = new RightReducer();
     153      UniformSubScopesProcessor uniformSubScopesProcessor3 = new UniformSubScopesProcessor();
     154      SubScopesRemover subScopesRemover = new SubScopesRemover();
     155      DuplicateSelector duplicateSelector = new DuplicateSelector();
     156      LeftReducer leftReducer = new LeftReducer();
    153157      SubScopesCounter subScopesCounter1 = new SubScopesCounter();
    154158      IntCounter intCounter1 = new IntCounter();
    155       UniformSubScopesProcessor uniformSubScopesProcessor3 = new UniformSubScopesProcessor();
    156       SubScopesRemover subScopesRemover = new SubScopesRemover();
    157159      Comparator comparator2 = new Comparator();
    158160      ConditionalBranch conditionalBranch1 = new ConditionalBranch();
     
    217219      conditionalSelector.CopySelected.Value = false;
    218220
     221      duplicateSelector.CopySelected.Value = false;
     222
     223      uniformSubScopesProcessor3.Parallel.Value = true;
     224
     225      subScopesRemover.RemoveAllSubScopes = true;
     226
    219227      subScopesCounter1.Name = "Count Successful Offspring";
    220228      subScopesCounter1.ValueParameter.ActualName = "NumberOfSuccessfulOffspring";
     
    223231      intCounter1.IncrementParameter.Value = null;
    224232      intCounter1.ValueParameter.ActualName = EvaluatedSolutionsParameter.Name;
    225 
    226       uniformSubScopesProcessor3.Parallel.Value = true;
    227 
    228       subScopesRemover.RemoveAllSubScopes = true;
    229233
    230234      comparator2.Comparison = new Comparison(ComparisonType.GreaterOrEqual);
     
    267271      assigner2.RightSideParameter.Value = new IntValue(0);
    268272
    269       subScopesCounter2.Name = "Increment EvaluatedSolutions";
     273      subScopesCounter2.Name = "Set CurrentPopulationSize";
    270274      subScopesCounter2.ValueParameter.ActualName = "CurrentPopulationSize";
    271275
     
    304308      evaluator.Successor = comparator1;
    305309      conditionalSelector.Successor = rightReducer1;
    306       rightReducer1.Successor = subScopesCounter1;
     310      rightReducer1.Successor = uniformSubScopesProcessor3;
     311      uniformSubScopesProcessor3.Operator = subScopesRemover;
     312      uniformSubScopesProcessor3.Successor = duplicateSelector;
     313      duplicateSelector.Successor = leftReducer;
     314      leftReducer.Successor = subScopesCounter1;
    307315      subScopesCounter1.Successor = intCounter1;
    308       intCounter1.Successor = uniformSubScopesProcessor3;
    309       uniformSubScopesProcessor3.Operator = subScopesRemover;
    310       uniformSubScopesProcessor3.Successor = comparator2;
     316      intCounter1.Successor = comparator2;
    311317      comparator2.Successor = conditionalBranch1;
    312318      conditionalBranch1.TrueBranch = bestSelector1;
Note: See TracChangeset for help on using the changeset viewer.