Changeset 9563 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector
- Timestamp:
- 06/02/13 04:26:26 (12 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector
- Files:
-
- 22 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/GroupingVectorCrossover.cs
r9348 r9563 30 30 [Item("Grouping Vector Crossover", "An operator which crosses two GroupingVector representations.")] 31 31 [StorableClass] 32 public class GroupingVectorCrossover : PackingSolutionCrossover, IGroupingVectorOperator {32 public abstract class GroupingVectorCrossover : PackingSolutionCrossover, IGroupingVectorOperator { 33 33 34 34 [StorableConstructor] … … 40 40 ChildParameter.ActualName = "GroupingVector"; 41 41 } 42 public override IDeepCloneable Clone(Cloner cloner) {43 return new GroupingVectorCrossover(this, cloner);44 }45 42 46 public GroupingVectorEncoding Cross(IRandom random, GroupingVectorEncoding parent1, GroupingVectorEncoding parent2) { 47 GroupingVectorEncoding result = new GroupingVectorEncoding(); 48 result.GroupingVector = SinglePointCrossover.Apply(random, parent1.GroupingVector, parent2.GroupingVector); 49 return result; 50 } 43 public abstract GroupingVectorEncoding Cross(IRandom random, GroupingVectorEncoding parent1, GroupingVectorEncoding parent2); 51 44 52 45 public override IOperation Apply() { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/GroupingVectorRandomCreator.cs
r9440 r9563 68 68 } 69 69 70 protected override I PackingSolutionEncodingCreateSolution() {70 protected override IItem CreateSolution() { 71 71 return Apply(PackingItemsParameter.ActualValue.Value, LowerBoundParameter.ActualValue.Value, RandomParameter.ActualValue); 72 72 }
Note: See TracChangeset
for help on using the changeset viewer.