Changeset 5568 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/ParticleOperators/RealVectorParticleUpdater.cs
- Timestamp:
- 02/28/11 17:25:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/ParticleOperators/RealVectorParticleUpdater.cs
r5566 r5568 45 45 get { return (ILookupParameter<RealVector>)Parameters["PersonalBest"]; } 46 46 } 47 public ILookupParameter<RealVector> NeighborsBestParameter { 48 get { return (ILookupParameter<RealVector>)Parameters["NeighborsBest"]; } 47 public ILookupParameter<RealVector> NeighborBestParameter { 48 get { return (ILookupParameter<RealVector>)Parameters["NeighborBest"]; } 49 } 50 public LookupParameter<RealVector> BestPointParameter { 51 get { return (LookupParameter<RealVector>)Parameters["BestPoint"]; } 49 52 } 50 53 public ILookupParameter<RealVector> RealVectorParameter { … … 63 66 get { return (ILookupParameter<DoubleValue>)Parameters["PersonalBestAttraction"]; } 64 67 } 65 public ILookupParameter<DoubleValue> Neighbor sBestAttractionParameter {66 get { return (ILookupParameter<DoubleValue>)Parameters["Neighbor sBestAttraction"]; }68 public ILookupParameter<DoubleValue> NeighborBestAttractionParameter { 69 get { return (ILookupParameter<DoubleValue>)Parameters["NeighborBestAttraction"]; } 67 70 } 68 71 #endregion … … 79 82 get { return PersonalBestParameter.ActualValue; } 80 83 } 84 protected RealVector BestPoint { 85 get { return BestPointParameter.ActualValue; } 86 } 81 87 protected RealVector RealVector { 82 88 get { return RealVectorParameter.ActualValue; } 83 89 set { RealVectorParameter.ActualValue = value; } 84 90 } 85 protected RealVector Neighbor sBest {86 get { return Neighbor sBestParameter.ActualValue; }91 protected RealVector NeighborBest { 92 get { return NeighborBestParameter.ActualValue; } 87 93 } 88 94 protected DoubleMatrix Bounds { … … 98 104 get { return PersonalBestAttractionParameter.ActualValue; } 99 105 } 100 protected DoubleValue Neighbor sBestAttraction {101 get { return Neighbor sBestAttractionParameter.ActualValue; }106 protected DoubleValue NeighborBestAttraction { 107 get { return NeighborBestAttractionParameter.ActualValue; } 102 108 } 103 109 #endregion … … 108 114 protected RealVectorParticleUpdater(bool deserializing) : base(deserializing) { } 109 115 protected RealVectorParticleUpdater(RealVectorParticleUpdater original, Cloner cloner) : base(original, cloner) { } 110 116 111 117 public RealVectorParticleUpdater() 112 118 : base() { … … 116 122 Parameters.Add(new LookupParameter<RealVector>("PersonalBest", "Particle's personal best solution.")); 117 123 Parameters.Add(new LookupParameter<RealVector>("BestPoint", "Global best position.")); 118 Parameters.Add(new LookupParameter<RealVector>("Neighbor sBest", "Best neighboring solution."));124 Parameters.Add(new LookupParameter<RealVector>("NeighborBest", "Best neighboring solution.")); 119 125 Parameters.Add(new LookupParameter<DoubleMatrix>("Bounds", "The lower and upper bounds for each dimension of the position vector for the current problem.")); 120 126 Parameters.Add(new LookupParameter<DoubleMatrix>("VelocityBounds", "Upper and lower bounds for the particle's velocity vector.")); 121 127 Parameters.Add(new LookupParameter<DoubleValue>("Inertia", "The weight for the particle's velocity vector.")); 122 128 Parameters.Add(new LookupParameter<DoubleValue>("PersonalBestAttraction", "The weight for the particle's personal best position.")); 123 Parameters.Add(new LookupParameter<DoubleValue>("Neighbor sBestAttraction", "The weight for the global best position."));129 Parameters.Add(new LookupParameter<DoubleValue>("NeighborBestAttraction", "The weight for the global best position.")); 124 130 } 125 131
Note: See TracChangeset
for help on using the changeset viewer.