- Timestamp:
- 12/06/10 14:59:14 (14 years ago)
- Location:
- branches/PSO/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PSO/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/BestPointInitializer.cs
r5033 r5034 21 21 22 22 using System.Linq; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 27 28 using HeuristicLab.Parameters; 28 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Common;30 30 31 31 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 32 33 [StorableClass] 32 34 public class BestPointInitializer : SingleSuccessorOperator { 33 35 -
branches/PSO/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleUpdater.cs
r5033 r5034 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Data; … … 26 27 using HeuristicLab.Parameters; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.Common;29 29 30 30 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 31 32 [StorableClass] 31 33 public class ParticleUpdater : SingleSuccessorOperator { 32 34 … … 69 71 } 70 72 public RealVector Point { 71 get { return PointParameter.ActualValue; 72 set { PointParameter.ActualValue = value; 73 get { return PointParameter.ActualValue; } 74 set { PointParameter.ActualValue = value; } 73 75 } 74 76 public RealVector Velocity { … … 83 85 } 84 86 public DoubleMatrix Bounds { 85 get { return BoundsParameter.ActualValue; 87 get { return BoundsParameter.ActualValue; } 86 88 } 87 89 public DoubleMatrix VelocityBounds { … … 92 94 } 93 95 public double Phi_P { 94 get { return Phi_PParameter.ActualValue.Value; 96 get { return Phi_PParameter.ActualValue.Value; } 95 97 } 96 98 public double Phi_G { -
branches/PSO/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/SwarmUpdater.cs
r5033 r5034 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Data; … … 26 27 using HeuristicLab.Parameters; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.Common;29 29 30 30 namespace HeuristicLab.Algorithms.ParticleSwarmOptimization { 31 32 [StorableClass] 31 33 public class SwarmUpdater : SingleSuccessorOperator { 32 34 … … 60 62 } 61 63 public double PersonalBestQuality { 62 get { return PersonalBestQualityParameter.ActualValue.Value; 63 set { PersonalBestQualityParameter.ActualValue = new DoubleValue(value); 64 get { return PersonalBestQualityParameter.ActualValue.Value; } 65 set { PersonalBestQualityParameter.ActualValue = new DoubleValue(value); } 64 66 } 65 67 public double BestQuality {
Note: See TracChangeset
for help on using the changeset viewer.