Changeset 4101 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding
- Timestamp:
- 07/25/10 01:26:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Moves/AdditiveMoveGenerator.cs
r4068 r4101 66 66 for (int i = 0; i < moves.Length; i++) { 67 67 AdditiveMove move = moves[i]; 68 if (vector[move.Dimension] < bounds[move.Dimension % bounds.Rows, 0])68 if (vector[move.Dimension] + move.MoveDistance < bounds[move.Dimension % bounds.Rows, 0]) 69 69 vector[move.Dimension] = bounds[move.Dimension % bounds.Rows, 0]; 70 else if (vector[move.Dimension] > bounds[move.Dimension % bounds.Rows, 1])70 else if (vector[move.Dimension] + move.MoveDistance > bounds[move.Dimension % bounds.Rows, 1]) 71 71 vector[move.Dimension] = bounds[move.Dimension % bounds.Rows, 1]; 72 72 }
Note: See TracChangeset
for help on using the changeset viewer.