Changeset 9244 for branches/CMAES
- Timestamp:
- 02/26/13 14:20:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CMAES/HeuristicLab.Algorithms.CMAEvolutionStrategy/3.3/CMAOperators/CMAMutator.cs
r9199 r9244 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 28 29 using HeuristicLab.Parameters; 29 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using System;31 31 32 32 namespace HeuristicLab.Algorithms.CMAEvolutionStrategy { … … 128 128 if (!inRange && maxTries > 1) { 129 129 if (bounds[k % bounds.Rows, 0] > arx[i][k]) arx[i][k] = bounds[k % bounds.Rows, 0]; 130 else if (bounds[k % bounds.Rows, 1] < arx[i][k]) arx[i][k] = bounds[ i% bounds.Rows, 1];130 else if (bounds[k % bounds.Rows, 1] < arx[i][k]) arx[i][k] = bounds[k % bounds.Rows, 1]; 131 131 } 132 132 } … … 153 153 for (int k = 0; k < arx[0].Length; k++) { 154 154 if (bounds[k % bounds.Rows, 0] > arx[i][k]) arx[i][k] = bounds[k % bounds.Rows, 0]; 155 else if (bounds[k % bounds.Rows, 1] < arx[i][k]) arx[i][k] = bounds[ i% bounds.Rows, 1];155 else if (bounds[k % bounds.Rows, 1] < arx[i][k]) arx[i][k] = bounds[k % bounds.Rows, 1]; 156 156 } 157 157 }
Note: See TracChangeset
for help on using the changeset viewer.