Changeset 2882 for trunk/sources/HeuristicLab.Evolutionary
- Timestamp:
- 02/27/10 03:35:11 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Evolutionary/3.3/PopulationCreator.cs
r2834 r2882 41 41 get { return (ValueLookupParameter<IOperator>)Parameters["SolutionCreator"]; } 42 42 } 43 public ValueLookupParameter<IOperator> SolutionEvaluatorParameter {44 get { return (ValueLookupParameter<IOperator>)Parameters[" SolutionEvaluator"]; }43 public ValueLookupParameter<IOperator> EvaluatorParameter { 44 get { return (ValueLookupParameter<IOperator>)Parameters["Evaluator"]; } 45 45 } 46 46 private ScopeParameter CurrentScopeParameter { … … 55 55 Parameters.Add(new ValueLookupParameter<IntData>("PopulationSize", "The number of individuals that should be created.")); 56 56 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.")); 58 58 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope which represents the population.")); 59 59 } … … 62 62 int size = PopulationSizeParameter.ActualValue.Value; 63 63 IOperator creator = SolutionCreatorParameter.ActualValue; 64 IOperator evaluator = SolutionEvaluatorParameter.ActualValue;64 IOperator evaluator = EvaluatorParameter.ActualValue; 65 65 66 66 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.