Changeset 3527 for trunk/sources/HeuristicLab.Encodings.PermutationEncoding
- Timestamp:
- 04/26/10 01:38:30 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/MultiPermutationCrossover.cs
r3445 r3527 20 20 #endregion 21 21 22 using System; 22 23 using System.Linq; 23 24 using HeuristicLab.Collections; … … 76 77 } 77 78 } 79 80 public override IOperation Apply() { 81 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one permutation crossover to choose from."); 82 return base.Apply(); 83 } 78 84 } 79 85 } -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/MultiPermutationManipulator.cs
r3445 r3527 20 20 #endregion 21 21 22 using System; 22 23 using System.Linq; 23 24 using HeuristicLab.Collections; … … 68 69 } 69 70 } 71 72 public override IOperation Apply() { 73 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one permutation manipulator to choose from."); 74 return base.Apply(); 75 } 70 76 } 71 77 }
Note: See TracChangeset
for help on using the changeset viewer.