Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/12 16:48:59 (12 years ago)
Author:
jkarder
Message:

#1331:

  • added EvaluatedSolutions parameter
  • SingleObjectiveTestFunctionImprovementOperator now retrieves the bounds from the scope tree
  • SingleObjectiveTestFunctionProblem now assigns the bounds to the similarity calculator
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ScatterSearch (trunk integration)/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearchMainLoop.cs

    r7789 r7954  
    4747      get { return (IValueLookupParameter<ICrossover>)Parameters["Crossover"]; }
    4848    }
     49    public IValueLookupParameter<IntValue> EvaluatedSolutionsParameter {
     50      get { return (IValueLookupParameter<IntValue>)Parameters["EvaluatedSolutions"]; }
     51    }
    4952    public IValueLookupParameter<IEvaluator> EvaluatorParameter {
    5053      get { return (IValueLookupParameter<IEvaluator>)Parameters["Evaluator"]; }
     
    109112      get { return CrossoverParameter.ActualValue; }
    110113      set { CrossoverParameter.ActualValue = value; }
     114    }
     115    private IntValue EvaluatedSolutions {
     116      get { return EvaluatedSolutionsParameter.ActualValue; }
     117      set { EvaluatedSolutionsParameter.ActualValue = value; }
    111118    }
    112119    private IEvaluator Evaluator {
     
    190197      Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality"));
    191198      Parameters.Add(new ValueLookupParameter<ICrossover>("Crossover"));
     199      Parameters.Add(new ValueLookupParameter<IntValue>("EvaluatedSolutions"));
    192200      Parameters.Add(new ValueLookupParameter<IEvaluator>("Evaluator"));
    193201      Parameters.Add(new ValueLookupParameter<BoolValue>("ExecutePathRelinking"));
     
    231239      SolutionPoolUpdateMethod solutionPoolUpdateMethod = new SolutionPoolUpdateMethod();
    232240      SolutionsCreator solutionsCreator = new SolutionsCreator();
     241      SubScopesCounter subScopesCounter1 = new SubScopesCounter();
     242      SubScopesCounter subScopesCounter2 = new SubScopesCounter();
    233243      SubScopesProcessor subScopesProcessor1 = new SubScopesProcessor();
    234244      SubScopesProcessor subScopesProcessor2 = new SubScopesProcessor();
     
    316326      uniformSubScopesProcessor2.DepthParameter.Value = new IntValue(2);
    317327      uniformSubScopesProcessor2.Operator = solutionImprover1;
     328      uniformSubScopesProcessor2.Successor = subScopesCounter1;
    318329
    319330      solutionImprover1.Name = "SolutionImprover";
     
    323334      solutionEvaluator1.Name = "SolutionEvaluator";
    324335      solutionEvaluator1.OperatorParameter.ActualName = "Evaluator";
     336
     337      subScopesCounter1.Name = "Increment EvaluatedSolutions";
     338      subScopesCounter1.ValueParameter.ActualName = EvaluatedSolutionsParameter.Name;
    325339
    326340      solutionPoolUpdateMethod.QualityParameter.ActualName = QualityParameter.ActualName;
     
    350364      uniformSubScopesProcessor3.DepthParameter.Value = new IntValue(1);
    351365      uniformSubScopesProcessor3.Operator = solutionImprover2;
     366      uniformSubScopesProcessor3.Successor = subScopesCounter2;
    352367
    353368      solutionImprover2.Name = "SolutionImprover";
     
    357372      solutionEvaluator2.Name = "SolutionEvaluator";
    358373      solutionEvaluator2.OperatorParameter.ActualName = "Evaluator";
     374
     375      subScopesCounter2.Name = "Increment EvaluatedSolutions";
     376      subScopesCounter2.ValueParameter.ActualName = EvaluatedSolutionsParameter.Name;
    359377
    360378      iterationsCounter.Name = "IterationCounter";
Note: See TracChangeset for help on using the changeset viewer.