Changeset 5892 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/ParticleOperators/RealVectorNeighborhoodParticleUpdater.cs
- Timestamp:
- 03/30/11 16:45:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/ParticleOperators/RealVectorNeighborhoodParticleUpdater.cs
r5866 r5892 57 57 } 58 58 59 BoundsChecker.Apply(velocity, CurrentVelocityBounds); 60 for (int i = 0; i < velocity.Length; i++) { 61 position[i] = RealVector[i] + velocity[i]; 62 } 63 BoundsChecker.Apply(position, Bounds); 64 65 RealVector = position; 66 Velocity = velocity; 59 MoveParticle(velocity, position); 67 60 68 61 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.