Changeset 3479 for trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs
- Timestamp:
- 04/21/10 22:05:40 (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs
r3450 r3479 39 39 /// An offspring selection island genetic algorithm. 40 40 /// </summary> 41 [Item(" Offspring Selection Island Genetic Algorithm", "An offspring selection islandgenetic algorithm.")]41 [Item("Island Offspring Selection Genetic Algorithm", "An island offspring selection genetic algorithm.")] 42 42 [Creatable("Algorithms")] 43 43 [StorableClass] 44 public sealed class OffspringSelectionIslandGeneticAlgorithm : EngineAlgorithm {44 public sealed class IslandOffspringSelectionGeneticAlgorithm : EngineAlgorithm { 45 45 46 46 #region Problem Properties … … 229 229 get { return (SolutionsCreator)IslandProcessor.Operator; } 230 230 } 231 private OffspringSelectionIslandGeneticAlgorithmMainLoop MainLoop {232 get { return ( OffspringSelectionIslandGeneticAlgorithmMainLoop)IslandProcessor.Successor; }231 private IslandOffspringSelectionGeneticAlgorithmMainLoop MainLoop { 232 get { return (IslandOffspringSelectionGeneticAlgorithmMainLoop)IslandProcessor.Successor; } 233 233 } 234 234 #endregion 235 235 236 236 [StorableConstructor] 237 private OffspringSelectionIslandGeneticAlgorithm(bool deserializing) : base(deserializing) { }238 public OffspringSelectionIslandGeneticAlgorithm()237 private IslandOffspringSelectionGeneticAlgorithm(bool deserializing) : base(deserializing) { } 238 public IslandOffspringSelectionGeneticAlgorithm() 239 239 : base() { 240 240 Parameters.Add(new ValueParameter<IntValue>("Seed", "The random seed used to initialize the new pseudo random number generator.", new IntValue(0))); … … 246 246 Parameters.Add(new ConstrainedValueParameter<ISelector>("EmigrantsSelector", "Selects the individuals that will be migrated.")); 247 247 Parameters.Add(new ConstrainedValueParameter<ISelector>("ImmigrationSelector", "Selects the population from the unification of the original population and the immigrants.")); 248 Parameters.Add(new ValueParameter<IntValue>("PopulationSize", "The size of the population of solutions .", new IntValue(100)));248 Parameters.Add(new ValueParameter<IntValue>("PopulationSize", "The size of the population of solutions of each island.", new IntValue(100))); 249 249 Parameters.Add(new ValueParameter<IntValue>("MaximumMigrations", "The maximum number of migrations that should occur.", new IntValue(100))); 250 250 Parameters.Add(new ConstrainedValueParameter<ISelector>("Selector", "The operator used to select solutions for reproduction.")); … … 265 265 UniformSubScopesProcessor ussp1 = new UniformSubScopesProcessor(); 266 266 SolutionsCreator solutionsCreator = new SolutionsCreator(); 267 OffspringSelectionIslandGeneticAlgorithmMainLoop mainLoop = new OffspringSelectionIslandGeneticAlgorithmMainLoop();267 IslandOffspringSelectionGeneticAlgorithmMainLoop mainLoop = new IslandOffspringSelectionGeneticAlgorithmMainLoop(); 268 268 OperatorGraph.InitialOperator = randomCreator; 269 269 … … 313 313 314 314 public override IDeepCloneable Clone(Cloner cloner) { 315 OffspringSelectionIslandGeneticAlgorithm clone = (OffspringSelectionIslandGeneticAlgorithm)base.Clone(cloner);315 IslandOffspringSelectionGeneticAlgorithm clone = (IslandOffspringSelectionGeneticAlgorithm)base.Clone(cloner); 316 316 clone.Initialize(); 317 317 return clone;
Note: See TracChangeset
for help on using the changeset viewer.