- Timestamp:
- 05/03/12 10:51:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch/HeuristicLab.Algorithms.ScatterSearch/3.3/Knapsack/KnapsackMultipleGuidesPathRelinker.cs
r7775 r7778 79 79 80 80 protected override ItemArray<IItem> Relink(ItemArray<IItem> parents, PercentValue n) { 81 if (parents.Length !=2)82 throw new ArgumentException("The number of parents is not equal to2.");81 if (parents.Length < 2) 82 throw new ArgumentException("The number of parents is smaller than 2."); 83 83 return Apply(parents[0], parents.Skip(1).ToArray(), n); 84 84 }
Note: See TracChangeset
for help on using the changeset viewer.