- Timestamp:
- 06/26/12 13:12:48 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs
r7999 r8121 70 70 get { return (ValueParameter<PercentValue>)Parameters["MigrationRate"]; } 71 71 } 72 p rivateConstrainedValueParameter<IMigrator> MigratorParameter {73 get { return ( ConstrainedValueParameter<IMigrator>)Parameters["Migrator"]; }74 } 75 p rivateConstrainedValueParameter<ISelector> EmigrantsSelectorParameter {76 get { return ( ConstrainedValueParameter<ISelector>)Parameters["EmigrantsSelector"]; }77 } 78 p rivateConstrainedValueParameter<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 p rivateConstrainedValueParameter<ISelector> SelectorParameter {88 get { return ( ConstrainedValueParameter<ISelector>)Parameters["Selector"]; }89 } 90 p rivateConstrainedValueParameter<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 p rivate 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 { … … 109 109 get { return (ValueLookupParameter<DoubleValue>)Parameters["ComparisonFactorUpperBound"]; } 110 110 } 111 p rivate OptionalConstrainedValueParameter<IDiscreteDoubleValueModifier> ComparisonFactorModifierParameter {112 get { return ( OptionalConstrainedValueParameter<IDiscreteDoubleValueModifier>)Parameters["ComparisonFactorModifier"]; }111 public IConstrainedValueParameter<IDiscreteDoubleValueModifier> ComparisonFactorModifierParameter { 112 get { return (IConstrainedValueParameter<IDiscreteDoubleValueModifier>)Parameters["ComparisonFactorModifier"]; } 113 113 } 114 114 private ValueLookupParameter<DoubleValue> MaximumSelectionPressureParameter { … … 205 205 set { ComparisonFactorUpperBoundParameter.Value = value; } 206 206 } 207 p rivateIDiscreteDoubleValueModifier ComparisonFactorModifier {207 public IDiscreteDoubleValueModifier ComparisonFactorModifier { 208 208 get { return ComparisonFactorModifierParameter.Value; } 209 209 set { ComparisonFactorModifierParameter.Value = value; } -
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.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 { … … 91 91 get { return (ValueLookupParameter<DoubleValue>)Parameters["ComparisonFactorUpperBound"]; } 92 92 } 93 public OptionalConstrainedValueParameter<IDiscreteDoubleValueModifier> ComparisonFactorModifierParameter {94 get { return ( OptionalConstrainedValueParameter<IDiscreteDoubleValueModifier>)Parameters["ComparisonFactorModifier"]; }93 public IConstrainedValueParameter<IDiscreteDoubleValueModifier> ComparisonFactorModifierParameter { 94 get { return (IConstrainedValueParameter<IDiscreteDoubleValueModifier>)Parameters["ComparisonFactorModifier"]; } 95 95 } 96 96 private ValueLookupParameter<DoubleValue> MaximumSelectionPressureParameter { -
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASA.cs
r7999 r8121 70 70 get { return (ValueParameter<IntValue>)Parameters["MaximumGenerations"]; } 71 71 } 72 p rivateConstrainedValueParameter<ISelector> SelectorParameter {73 get { return ( ConstrainedValueParameter<ISelector>)Parameters["Selector"]; }74 } 75 p rivateConstrainedValueParameter<ICrossover> CrossoverParameter {76 get { return ( ConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; }72 public IConstrainedValueParameter<ISelector> SelectorParameter { 73 get { return (IConstrainedValueParameter<ISelector>)Parameters["Selector"]; } 74 } 75 public IConstrainedValueParameter<ICrossover> CrossoverParameter { 76 get { return (IConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; } 77 77 } 78 78 private ValueParameter<PercentValue> MutationProbabilityParameter { 79 79 get { return (ValueParameter<PercentValue>)Parameters["MutationProbability"]; } 80 80 } 81 p rivate OptionalConstrainedValueParameter<IManipulator> MutatorParameter {82 get { return ( OptionalConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; }81 public IConstrainedValueParameter<IManipulator> MutatorParameter { 82 get { return (IConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; } 83 83 } 84 84 private ValueParameter<IntValue> ElitesParameter { … … 94 94 get { return (ValueLookupParameter<DoubleValue>)Parameters["ComparisonFactorUpperBound"]; } 95 95 } 96 p rivate OptionalConstrainedValueParameter<IDiscreteDoubleValueModifier> ComparisonFactorModifierParameter {97 get { return ( OptionalConstrainedValueParameter<IDiscreteDoubleValueModifier>)Parameters["ComparisonFactorModifier"]; }96 public IConstrainedValueParameter<IDiscreteDoubleValueModifier> ComparisonFactorModifierParameter { 97 get { return (IConstrainedValueParameter<IDiscreteDoubleValueModifier>)Parameters["ComparisonFactorModifier"]; } 98 98 } 99 99 private ValueLookupParameter<DoubleValue> MaximumSelectionPressureParameter {
Note: See TracChangeset
for help on using the changeset viewer.