Changeset 5560 for trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/NeighborUpdater.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/NeighborUpdater.cs
r5445 r5560 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Data; 26 using HeuristicLab.Encodings.IntegerVectorEncoding;27 26 using HeuristicLab.Encodings.RealVectorEncoding; 28 27 using HeuristicLab.Operators; … … 42 41 get { return (IScopeTreeLookupParameter<RealVector>)Parameters["Point"]; } 43 42 } 44 public IScopeTreeLookupParameter<Int egerVector> NeighborsParameter {45 get { return (IScopeTreeLookupParameter<Int egerVector>)Parameters["Neighbors"]; }43 public IScopeTreeLookupParameter<IntArray> NeighborsParameter { 44 get { return (IScopeTreeLookupParameter<IntArray>)Parameters["Neighbors"]; } 46 45 } 47 46 public IScopeTreeLookupParameter<RealVector> BestNeighborPointParameter { … … 60 59 get { return PointsParameter.ActualValue; } 61 60 } 62 private ItemArray<Int egerVector> Neighbors {61 private ItemArray<IntArray> Neighbors { 63 62 get { return NeighborsParameter.ActualValue; } 64 63 } … … 80 79 private NeighborUpdater(NeighborUpdater original, Cloner cloner) : base(original, cloner) { } 81 80 public NeighborUpdater() { 82 Parameters.Add(new ScopeTreeLookupParameter<RealVector>(" Point", "The position of the particle."));83 Parameters.Add(new ScopeTreeLookupParameter<Int egerVector>("Neighbors", "The list of neighbors for each particle."));81 Parameters.Add(new ScopeTreeLookupParameter<RealVector>("RealVector", "The position of the particle.")); 82 Parameters.Add(new ScopeTreeLookupParameter<IntArray>("Neighbors", "The list of neighbors for each particle.")); 84 83 Parameters.Add(new ScopeTreeLookupParameter<RealVector>("BestNeighborPoint", "The position of the best neighboring particle.")); 85 84 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The list of qualities of all particles."));
Note: See TracChangeset
for help on using the changeset viewer.