Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/18/10 04:11:49 (14 years ago)
Author:
swagner
Message:

Replaced LeftSelector and RightSelector by BestSelector and WorstSelector (#926)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.LS/3.3/LSMainLoop.cs

    r3078 r3096  
    9797      UniformSequentialSubScopesProcessor moveEvaluationProcessor = new UniformSequentialSubScopesProcessor();
    9898      Placeholder moveEvaluator = new Placeholder();
    99       SubScopesSorter moveQualitySorter = new SubScopesSorter();
    100       LeftSelector leftSelector = new LeftSelector();
     99      BestSelector bestSelector = new BestSelector();
    101100      RightReducer rightReducer = new RightReducer();
    102101      UniformSequentialSubScopesProcessor moveMakingProcessor = new UniformSequentialSubScopesProcessor();
     
    127126      moveEvaluator.OperatorParameter.ActualName = "MoveEvaluator";
    128127
    129       moveQualitySorter.DescendingParameter.ActualName = "Maximization";
    130       moveQualitySorter.ValueParameter.ActualName = "MoveQuality";
    131 
    132       leftSelector.NumberOfSelectedSubScopesParameter.Value = new IntValue(1);
     128      bestSelector.CopySelected = new BoolValue(false);
     129      bestSelector.MaximizationParameter.ActualName = "Maximization";
     130      bestSelector.NumberOfSelectedSubScopesParameter.Value = new IntValue(1);
     131      bestSelector.QualityParameter.ActualName = "MoveQuality";
    133132
    134133      moveMakingProcessor.Name = "MoveMaking processor (UniformSequentialSubScopesProcessor)";
     
    170169      moveGenerator.Successor = moveEvaluationProcessor;
    171170      moveEvaluationProcessor.Operator = moveEvaluator;
    172       moveEvaluationProcessor.Successor = moveQualitySorter;
    173       moveQualitySorter.Successor = leftSelector;
    174       leftSelector.Successor = rightReducer;
     171      moveEvaluationProcessor.Successor = bestSelector;
     172      bestSelector.Successor = rightReducer;
    175173      rightReducer.Successor = moveMakingProcessor;
    176174      moveMakingProcessor.Operator = qualityComparator;
Note: See TracChangeset for help on using the changeset viewer.