Changeset 5435 for trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/NeighborhoodParticleUpdater.cs
- Timestamp:
- 02/04/11 21:34:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/NeighborhoodParticleUpdater.cs
r5427 r5435 26 26 27 27 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 28 29 [Item("Neighborhood Particle Updater", "Updates the particle's position using (among other things) the best neighbor's position. Point = Point + Velocity*Omega + (PersonalBestPoint-Point)*Phi_P*r_p + (BestNeighborPoint-Point)*Phi_G*r_g")] 28 [Item("Neighborhood Particle Updater", "Updates the particle's position using (among other things) the best neighbor's position. Point = Point + Velocity*Omega + (PersonalBestPoint-Point)*Phi_P*r_p + (BestNeighborPoint-Point)*Phi_G*r_g.")] 30 29 [StorableClass] 31 public class NeighborhoodParticleUpdater : ParticleUpdater, ILocalParticleUpdater { 32 33 #region Construction & Cloning 30 public sealed class NeighborhoodParticleUpdater : ParticleUpdater, ILocalParticleUpdater { 34 31 35 32 [StorableConstructor] 36 pr otectedNeighborhoodParticleUpdater(bool deserializing) : base(deserializing) { }37 pr otectedNeighborhoodParticleUpdater(NeighborhoodParticleUpdater original, Cloner cloner) : base(original, cloner) { }33 private NeighborhoodParticleUpdater(bool deserializing) : base(deserializing) { } 34 private NeighborhoodParticleUpdater(NeighborhoodParticleUpdater original, Cloner cloner) : base(original, cloner) { } 38 35 public NeighborhoodParticleUpdater() : base() { } 39 36 … … 41 38 return new NeighborhoodParticleUpdater(this, cloner); 42 39 } 43 44 #endregion45 40 46 41 public override IOperation Apply() {
Note: See TracChangeset
for help on using the changeset viewer.