Changeset 5796 for branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/VonNeumannTopologyInitializer.cs
- Timestamp:
- 03/22/11 16:45:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/VonNeumannTopologyInitializer.cs
r5445 r5796 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Encodings.IntegerVectorEncoding;25 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 using HeuristicLab.Data; 26 26 27 27 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { … … 44 44 45 45 public override IOperation Apply() { 46 ItemArray<Int egerVector> neighbors = new ItemArray<IntegerVector>(SwarmSize);46 ItemArray<IntArray> neighbors = new ItemArray<IntArray>(SwarmSize); 47 47 for (int i = 0; i < SwarmSize; i++) { 48 neighbors[i] = new Int egerVector(new[] {48 neighbors[i] = new IntArray(new[] { 49 49 (SwarmSize + i-2) % SwarmSize, 50 50 (SwarmSize + i-1) % SwarmSize,
Note: See TracChangeset
for help on using the changeset viewer.