Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/04/10 04:52:28 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • implemented reviewers' comments on version r2917.
File:
1 edited

Legend:

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

    r2917 r2924  
    5252      get { return (ConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; }
    5353    }
    54     private ConstrainedValueParameter<IManipulator> MutatorParameter {
    55       get { return (ConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; }
     54    private OptionalConstrainedValueParameter<IManipulator> MutatorParameter {
     55      get { return (OptionalConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; }
    5656    }
    5757    private ValueParameter<IntData> ElitesParameter {
     
    7575      Parameters.Add(new ConstrainedValueParameter<ICrossover>("Crossover", "The operator used to cross solutions."));
    7676      Parameters.Add(new ValueParameter<DoubleData>("MutationProbability", "The probability that the mutation operator is applied on a solution.", new DoubleData(0.05)));
    77       Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions."));
     77      Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions."));
    7878      Parameters.Add(new ValueParameter<IntData>("Elites", "The numer of elite solutions which are kept in each generation.", new IntData(1)));
    7979      Parameters.Add(new ValueParameter<IntData>("MaximumGenerations", "The maximum number of generations which should be processed.", new IntData(1000)));
Note: See TracChangeset for help on using the changeset viewer.