Changeset 2924 for trunk/sources/HeuristicLab.Algorithms.SGA/3.3/SGA.cs
- Timestamp:
- 03/04/10 04:52:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.SGA/3.3/SGA.cs
r2917 r2924 52 52 get { return (ConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; } 53 53 } 54 private ConstrainedValueParameter<IManipulator> MutatorParameter {55 get { return ( ConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; }54 private OptionalConstrainedValueParameter<IManipulator> MutatorParameter { 55 get { return (OptionalConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; } 56 56 } 57 57 private ValueParameter<IntData> ElitesParameter { … … 75 75 Parameters.Add(new ConstrainedValueParameter<ICrossover>("Crossover", "The operator used to cross solutions.")); 76 76 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.")); 78 78 Parameters.Add(new ValueParameter<IntData>("Elites", "The numer of elite solutions which are kept in each generation.", new IntData(1))); 79 79 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.