- Timestamp:
- 10/09/15 13:47:46 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs
r12570 r12992 41 41 public sealed class AlpsGeneticAlgorithm : Alps { 42 42 #region Parameter Properties 43 private IValueParameter<Int Array> PopulationSizeParameter {44 get { return (IValueParameter<Int Array>)Parameters["PopulationSize"]; }43 private IValueParameter<IntValue> PopulationSizeParameter { 44 get { return (IValueParameter<IntValue>)Parameters["PopulationSize"]; } 45 45 } 46 46 public IConstrainedValueParameter<ISelector> SelectorParameter { … … 68 68 69 69 #region Properties 70 public Int ArrayPopulationSize {70 public IntValue PopulationSize { 71 71 get { return PopulationSizeParameter.Value; } 72 72 set { PopulationSizeParameter.Value = value; } … … 130 130 public AlpsGeneticAlgorithm() 131 131 : base() { 132 Parameters.Add(new ValueParameter<Int Array>("PopulationSize", "The size of the population of solutions each layer.", new IntArray(new[] { 100 })));132 Parameters.Add(new ValueParameter<IntValue>("PopulationSize", "The size of the population of solutions each layer.", new IntValue(100))); 133 133 Parameters.Add(new ConstrainedValueParameter<ISelector>("Selector", "The operator used to select solutions for reproduction.")); 134 134 Parameters.Add(new ConstrainedValueParameter<ICrossover>("Crossover", "The operator used to cross solutions.")); … … 141 141 var globalRandomCreator = new RandomCreator(); 142 142 var layer0Creator = new SubScopesCreator() { Name = "Create Layer Zero" }; 143 var layer0Processor = new LayerUniformSubScopesProcessor();143 var layer0Processor = new UniformSubScopesProcessor(); 144 144 var localRandomCreator = new LocalRandomCreator(); 145 145 var layerVariableCreator = new VariableCreator();
Note: See TracChangeset
for help on using the changeset viewer.