- Timestamp:
- 06/26/12 13:12:48 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs
r7999 r8121 64 64 get { return (ValueParameter<IntValue>)Parameters["PopulationSize"]; } 65 65 } 66 public ConstrainedValueParameter<ISelector> SelectorParameter {67 get { return ( ConstrainedValueParameter<ISelector>)Parameters["Selector"]; }68 } 69 public ConstrainedValueParameter<ICrossover> CrossoverParameter {70 get { return ( ConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; }66 public IConstrainedValueParameter<ISelector> SelectorParameter { 67 get { return (IConstrainedValueParameter<ISelector>)Parameters["Selector"]; } 68 } 69 public IConstrainedValueParameter<ICrossover> CrossoverParameter { 70 get { return (IConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; } 71 71 } 72 72 private ValueParameter<PercentValue> MutationProbabilityParameter { 73 73 get { return (ValueParameter<PercentValue>)Parameters["MutationProbability"]; } 74 74 } 75 public OptionalConstrainedValueParameter<IManipulator> MutatorParameter {76 get { return ( OptionalConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; }75 public IConstrainedValueParameter<IManipulator> MutatorParameter { 76 get { return (IConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; } 77 77 } 78 78 private ValueParameter<IntValue> ElitesParameter { -
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r7999 r8121 70 70 get { return (ValueParameter<PercentValue>)Parameters["MigrationRate"]; } 71 71 } 72 public ConstrainedValueParameter<IMigrator> MigratorParameter {73 get { return ( ConstrainedValueParameter<IMigrator>)Parameters["Migrator"]; }74 } 75 public ConstrainedValueParameter<ISelector> EmigrantsSelectorParameter {76 get { return ( ConstrainedValueParameter<ISelector>)Parameters["EmigrantsSelector"]; }77 } 78 public ConstrainedValueParameter<IReplacer> ImmigrationReplacerParameter {79 get { return ( ConstrainedValueParameter<IReplacer>)Parameters["ImmigrationReplacer"]; }72 public IConstrainedValueParameter<IMigrator> MigratorParameter { 73 get { return (IConstrainedValueParameter<IMigrator>)Parameters["Migrator"]; } 74 } 75 public IConstrainedValueParameter<ISelector> EmigrantsSelectorParameter { 76 get { return (IConstrainedValueParameter<ISelector>)Parameters["EmigrantsSelector"]; } 77 } 78 public IConstrainedValueParameter<IReplacer> ImmigrationReplacerParameter { 79 get { return (IConstrainedValueParameter<IReplacer>)Parameters["ImmigrationReplacer"]; } 80 80 } 81 81 private ValueParameter<IntValue> PopulationSizeParameter { … … 85 85 get { return (ValueParameter<IntValue>)Parameters["MaximumGenerations"]; } 86 86 } 87 public ConstrainedValueParameter<ISelector> SelectorParameter {88 get { return ( ConstrainedValueParameter<ISelector>)Parameters["Selector"]; }89 } 90 public ConstrainedValueParameter<ICrossover> CrossoverParameter {91 get { return ( ConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; }87 public IConstrainedValueParameter<ISelector> SelectorParameter { 88 get { return (IConstrainedValueParameter<ISelector>)Parameters["Selector"]; } 89 } 90 public IConstrainedValueParameter<ICrossover> CrossoverParameter { 91 get { return (IConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; } 92 92 } 93 93 private ValueParameter<PercentValue> MutationProbabilityParameter { 94 94 get { return (ValueParameter<PercentValue>)Parameters["MutationProbability"]; } 95 95 } 96 public OptionalConstrainedValueParameter<IManipulator> MutatorParameter {97 get { return ( OptionalConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; }96 public IConstrainedValueParameter<IManipulator> MutatorParameter { 97 get { return (IConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; } 98 98 } 99 99 private ValueParameter<IntValue> ElitesParameter {
Note: See TracChangeset
for help on using the changeset viewer.