Changeset 5560 for trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/RandomTopologyInitializer.cs
- Timestamp:
- 02/24/11 17:08:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/RandomTopologyInitializer.cs
r5445 r5560 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Data; 27 using HeuristicLab.Encodings.IntegerVectorEncoding;28 27 using HeuristicLab.Parameters; 29 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 66 65 67 66 public override IOperation Apply() { 68 ItemArray<Int egerVector> neighbors = new ItemArray<IntegerVector>(SwarmSize);67 ItemArray<IntArray> neighbors = new ItemArray<IntArray>(SwarmSize); 69 68 for (int i = 0; i < SwarmSize; i++) { 70 69 var numbers = Enumerable.Range(0, SwarmSize).ToList(); … … 76 75 numbers.RemoveAt(index); 77 76 } 78 neighbors[i] = new Int egerVector(selectedNumbers.ToArray());77 neighbors[i] = new IntArray(selectedNumbers.ToArray()); 79 78 } 80 79 Neighbors = neighbors;
Note: See TracChangeset
for help on using the changeset viewer.