Changeset 7407 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/DiscreteLocationCrossover.cs
- Timestamp:
- 01/24/12 17:23:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/DiscreteLocationCrossover.cs
r7319 r7407 28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.Problems.GeneralizedQuadraticAssignment.Common; 30 31 31 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment .Operators{32 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment { 32 33 [Item("DiscreteLocationCrossover", "Combines the assignment to locations from various parents.")] 33 34 [StorableClass] … … 52 53 53 54 public static IntegerVector Apply(IRandom random, ItemArray<IntegerVector> parents, DoubleArray capacities) { 54 55 55 56 var groupedLocations = parents 56 57 .Select(p => p.Select((value, index) => new { Equipment = index, Location = value })
Note: See TracChangeset
for help on using the changeset viewer.