Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/OrderCrossover.cs
- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/OrderCrossover.cs
r14185 r14927 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Encodings.PermutationEncoding { … … 36 36 /// </remarks> 37 37 [Item("OrderCrossover", "An operator which performs an order crossover of two permutations. It is implemented as described in Eiben, A.E. and Smith, J.E. 2003. Introduction to Evolutionary Computation. Natural Computing Series, Springer-Verlag Berlin Heidelberg.")] 38 [Storable Class]38 [StorableType("f623874a-f886-4cce-82d1-af57904e5b6c")] 39 39 public class OrderCrossover : PermutationCrossover { 40 40 [StorableConstructor] … … 87 87 if (i >= length) i = 0; 88 88 } 89 } 90 catch (IndexOutOfRangeException) { 89 } catch (IndexOutOfRangeException) { 91 90 throw new InvalidOperationException("OrderCrossover: The permutation must consist of numbers in the interval [0;N) with N = length of the permutation."); 92 91 }
Note: See TracChangeset
for help on using the changeset viewer.