Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/27/10 03:35:11 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on algorithms
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Evolutionary/3.3/PopulationCreator.cs

    r2834 r2882  
    4141      get { return (ValueLookupParameter<IOperator>)Parameters["SolutionCreator"]; }
    4242    }
    43     public ValueLookupParameter<IOperator> SolutionEvaluatorParameter {
    44       get { return (ValueLookupParameter<IOperator>)Parameters["SolutionEvaluator"]; }
     43    public ValueLookupParameter<IOperator> EvaluatorParameter {
     44      get { return (ValueLookupParameter<IOperator>)Parameters["Evaluator"]; }
    4545    }
    4646    private ScopeParameter CurrentScopeParameter {
     
    5555      Parameters.Add(new ValueLookupParameter<IntData>("PopulationSize", "The number of individuals that should be created."));
    5656      Parameters.Add(new ValueLookupParameter<IOperator>("SolutionCreator", "The operator which is used to create new solutions."));
    57       Parameters.Add(new ValueLookupParameter<IOperator>("SolutionEvaluator", "The operator which is used to evaluate new solutions."));
     57      Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator which is used to evaluate new solutions."));
    5858      Parameters.Add(new ScopeParameter("CurrentScope", "The current scope which represents the population."));
    5959    }
     
    6262      int size = PopulationSizeParameter.ActualValue.Value;
    6363      IOperator creator = SolutionCreatorParameter.ActualValue;
    64       IOperator evaluator = SolutionEvaluatorParameter.ActualValue;
     64      IOperator evaluator = EvaluatorParameter.ActualValue;
    6565
    6666      if (CurrentScope.SubScopes.Count > 0) throw new InvalidOperationException("Population is not empty. PopulationCreator cannot be applied on scopes which already contain sub-scopes.");
Note: See TracChangeset for help on using the changeset viewer.