Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/PartiallyMatchedCrossover.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/PartiallyMatchedCrossover.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 { … … 35 35 /// </remarks> 36 36 [Item("PartiallyMatchedCrossover", "An operator which performs the partially matched crossover on two permutations. It is implemented as described in Fogel, D.B. 1988. An Evolutionary Approach to the Traveling Salesman Problem. Biological Cybernetics, 60, pp. 139-144, Springer-Verlag.")] 37 [Storable Class]37 [StorableType("44e020d0-720e-48bc-b394-acccf742944f")] 38 38 public class PartiallyMatchedCrossover : PermutationCrossover { 39 39 [StorableConstructor] … … 81 81 invResult[result[j]] = j; 82 82 } 83 } 84 catch (IndexOutOfRangeException) { 83 } catch (IndexOutOfRangeException) { 85 84 throw new InvalidOperationException("PartiallyMatchedCrossover: The permutation must consist of consecutive numbers from 0 to N-1 with N = length of the permutation."); 86 85 }
Note: See TracChangeset
for help on using the changeset viewer.