Changeset 9363 for branches/OaaS/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/RoundedLocalCrossover.cs
- Timestamp:
- 04/16/13 13:13:41 (11 years ago)
- Location:
- branches/OaaS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 23 24 packages
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/OaaS/HeuristicLab.Encodings.IntegerVectorEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding (added) merged: 8246,8600,8790,8806
- Property svn:mergeinfo changed
-
branches/OaaS/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/RoundedLocalCrossover.cs
r8019 r9363 64 64 max = bounds[i % bounds.Rows, 1]; 65 65 if (bounds.Columns > 2) step = bounds[i % bounds.Rows, 2]; 66 max = FloorFeasible(min, max, step, max - 1); 66 67 factor = random.NextDouble(); 67 68 result[i] = RoundFeasible(min, max, step, (factor * parent1[i]) + ((1 - factor) * parent2[i]));
Note: See TracChangeset
for help on using the changeset viewer.