Changeset 18233 for branches/3040_VectorBasedGP/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators
- Timestamp:
- 03/10/22 09:53:58 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/UniformOnePositionManipulator.cs
r17180 r18233 93 93 // but 99 is not a feasible value, so max needs to be adjusted => min = 0, max = 95 94 94 max = FloorFeasible(min, max, step, max - 1); 95 vector[index] = RoundFeasible(min, max, step, random.Next(min, max)); 95 if (min == max) 96 vector[index] = min; 97 else 98 vector[index] = RoundFeasible(min, max, step, random.Next(min, max)); 96 99 } 97 100 }
Note: See TracChangeset
for help on using the changeset viewer.