- Timestamp:
- 07/25/12 17:29:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RAPGA/HeuristicLab.Algorithms.RAPGA/3.3/RAPGA.cs
r8313 r8330 64 64 get { return (ValueParameter<IntValue>)Parameters["PopulationSize"]; } 65 65 } 66 private IValueParameter<IntValue> MinimumPopulationSizeParameter { 67 get { return (IValueParameter<IntValue>)Parameters["MinimumPopulationSize"]; } 68 } 69 private IValueParameter<IntValue> MaximumPopulationSizeParameter { 70 get { return (IValueParameter<IntValue>) Parameters["MaximumPopulationSize"]; } 71 } 72 private IValueParameter<DoubleValue> ComparisonFactorParameter { 73 get { return (IValueParameter<DoubleValue>)Parameters["ComparisonFactor"]; } 74 } 75 private IValueParameter<IntValue> EffortParameter { 76 get { return (IValueParameter<IntValue>)Parameters["Effort"]; } 77 } 66 78 public IConstrainedValueParameter<ISelector> SelectorParameter { 67 79 get { return (IConstrainedValueParameter<ISelector>)Parameters["Selector"]; } … … 99 111 get { return PopulationSizeParameter.Value; } 100 112 set { PopulationSizeParameter.Value = value; } 113 } 114 public IntValue MinimumPopulationSize { 115 get { return MinimumPopulationSizeParameter.Value; } 116 set { MinimumPopulationSizeParameter.Value = value; } 117 } 118 public IntValue MaximumPopulationSize { 119 get { return MaximumPopulationSizeParameter.Value; } 120 set { MaximumPopulationSizeParameter.Value = value; } 121 } 122 public DoubleValue ComparisonFactor { 123 get { return ComparisonFactorParameter.Value; } 124 set { ComparisonFactorParameter.Value = value; } 125 } 126 public IntValue Effort { 127 get { return EffortParameter.Value; } 128 set { EffortParameter.Value = value; } 101 129 } 102 130 public ISelector Selector { … … 154 182 Parameters.Add(new ValueParameter<IntValue>("Seed", "The random seed used to initialize the new pseudo random number generator.", new IntValue(0))); 155 183 Parameters.Add(new ValueParameter<BoolValue>("SetSeedRandomly", "True if the random seed should be set to a random value, otherwise false.", new BoolValue(true))); 156 Parameters.Add(new ValueParameter<IntValue>("PopulationSize", "The size of the population of solutions.", new IntValue(100))); 184 Parameters.Add(new ValueParameter<IntValue>("PopulationSize", "The size of the population of solutions.", new IntValue(300))); 185 Parameters.Add(new ValueParameter<IntValue>("MinimumPopulationSize", "The minimum size of the population of solutions.", new IntValue(2))); 186 Parameters.Add(new ValueParameter<IntValue>("MaximumPopulationSize", "The maximum size of the population of solutions.", new IntValue(499))); 187 Parameters.Add(new ValueParameter<DoubleValue>("ComparisonFactor", "The comparison factor.", new DoubleValue(0.0))); 188 Parameters.Add(new ValueParameter<IntValue>("Effort", "The maximum number of offspring created in each generation.", new IntValue(1000))); 157 189 Parameters.Add(new ConstrainedValueParameter<ISelector>("Selector", "The operator used to select solutions for reproduction.")); 158 190 Parameters.Add(new ConstrainedValueParameter<ICrossover>("Crossover", "The operator used to cross solutions."));
Note: See TracChangeset
for help on using the changeset viewer.