Changeset 9001 for trunk/sources/HeuristicLab.Optimization.Operators
- Timestamp:
- 12/05/12 14:45:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Operators/3.3/TabuMaker.cs
r7259 r9001 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 65 66 ItemList<IItem> tabuList = TabuListParameter.ActualValue; 66 67 int tabuTenure = TabuTenureParameter.ActualValue.Value; 68 if (tabuTenure == 0) return base.Apply(); 69 if (tabuTenure < 0) throw new InvalidOperationException("A TabuTenure of less than 0 is not allowed."); 67 70 68 71 int overlength = tabuList.Count - tabuTenure;
Note: See TracChangeset
for help on using the changeset viewer.