- Timestamp:
- 02/26/13 15:49:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CMAES/HeuristicLab.Algorithms.CMAEvolutionStrategy/3.3/CMAOperators/CMAMutator.cs
r9244 r9245 123 123 do { 124 124 arx[i][k] = xmean[k] + sp.Sigma.Value * sp.D[k] * alglib.hqrndnormal(state); 125 inRange = bounds[k % bounds.Rows, 0] <= arx[i][k] ||arx[i][k] <= bounds[k % bounds.Rows, 1];125 inRange = bounds[k % bounds.Rows, 0] <= arx[i][k] && arx[i][k] <= bounds[k % bounds.Rows, 1]; 126 126 if (!inRange) tries++; 127 127 } while (!inRange && tries < maxTries);
Note: See TracChangeset
for help on using the changeset viewer.