Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/19/12 17:33:28 (12 years ago)
Author:
abeham
Message:

#1614: Worked on GQAP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/GRASPWithPathRelinkingMainLoop.cs

    r7363 r7373  
    6161      get { return (IValueLookupParameter<IOperator>)Parameters["PathRelinking"]; }
    6262    }
    63     public IValueLookupParameter<IOperator> EliteSetReplacerParameter {
    64       get { return (IValueLookupParameter<IOperator>)Parameters["EliteSetReplacer"]; }
     63    public IValueLookupParameter<IOperator> EliteSetMergerParameter {
     64      get { return (IValueLookupParameter<IOperator>)Parameters["EliteSetMerger"]; }
    6565    }
    6666    public IValueLookupParameter<IOperator> AnalyzerParameter {
     
    8282      Parameters.Add(new ValueLookupParameter<IOperator>("LocalImprovement", "The operator which performs the local improvement."));
    8383      Parameters.Add(new ValueLookupParameter<IOperator>("PathRelinking", "The operator which performs the path relinking."));
    84       Parameters.Add(new ValueLookupParameter<IOperator>("EliteSetReplacer", "The operator that replaces elements in the elite set."));
     84      Parameters.Add(new ValueLookupParameter<IOperator>("EliteSetMerger", "The operator that merges elements in the elite set."));
    8585      Parameters.Add(new ValueLookupParameter<IOperator>("Analyzer", "The analyzer that is to be applied."));
    8686
    8787      var variableCreator1 = new VariableCreator();
     88      variableCreator1.Name = "Iterations = 0";
    8889      variableCreator1.CollectedValues.Add(new ValueParameter<IntValue>("Iterations", new IntValue(0)));
    8990
    9091      var variableCreator2 = new VariableCreator();
     92      variableCreator2.Name = "ActualEliteSetSize = 0";
    9193      variableCreator2.CollectedValues.Add(new ValueParameter<IntValue>("ActualEliteSetSize", new IntValue(0)));
    92       variableCreator2.Name = "ActualEliteSetSize = 0";
    9394
    9495      var subScopesCounter1 = new SubScopesCounter();
     
    119120
    120121      var solutionsCreator = new SolutionsCreator();
     122      solutionsCreator.ParallelParameter.Value = new BoolValue(false);
    121123      solutionsCreator.EvaluatorParameter.ActualName = EvaluatorParameter.Name;
    122124      solutionsCreator.SolutionCreatorParameter.ActualName = SolutionCreatorParameter.Name;
     
    149151      childrenCreator.ParentsPerChild = new IntValue(2);
    150152
     153      var ssp3 = new SubScopesProcessor();
     154
    151155      var placeholder2 = new Placeholder();
    152156      placeholder2.Name = "(PathRelinking)";
     
    156160      subScopesRemover.RemoveAllSubScopes = true;
    157161
    158       var ssp3 = new SubScopesProcessor();
     162      var ssp4 = new SubScopesProcessor();
    159163
    160164      var placeholder3 = new Placeholder();
     
    163167
    164168      var placeholder4 = new Placeholder();
    165       placeholder4.Name = "(Replacer)";
    166       placeholder4.OperatorParameter.ActualName = EliteSetReplacerParameter.Name;
     169      placeholder4.Name = "(EliteSetMerger)";
     170      placeholder4.OperatorParameter.ActualName = EliteSetMergerParameter.Name;
    167171
    168172      var counter = new IntCounter();
     
    203207      conditionalBranch2.TrueBranch = ssp2;
    204208      conditionalBranch2.FalseBranch = null;
    205       conditionalBranch2.Successor = ssp3;
     209      conditionalBranch2.Successor = ssp4;
    206210      ssp2.Operators.Add(eo2);
    207211      ssp2.Operators.Add(placeholder1);
    208       ssp2.Successor = null;
     212      ssp2.Successor = childrenCreator;
    209213      eo2.Successor = null;
    210       placeholder1.Successor = childrenCreator;
    211       childrenCreator.Successor = placeholder2;
     214      placeholder1.Successor = null;
     215      childrenCreator.Successor = ssp3;
     216      ssp3.Operators.Add(placeholder2);
     217      ssp3.Successor = null;
    212218      placeholder2.Successor = subScopesRemover;
    213219      subScopesRemover.Successor = null;
    214       ssp3.Operators.Add(placeholder3);
    215       ssp3.Successor = null;
     220      ssp4.Operators.Add(placeholder3);
     221      ssp4.Successor = null;
    216222      placeholder4.Successor = counter;
    217223      counter.Successor = analyzer1;
Note: See TracChangeset for help on using the changeset viewer.