Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/02/13 04:26:26 (12 years ago)
Author:
jhelm
Message:

#1966: Implemented additional Operator-Wrappers for PackingSequence and GroupingVector; Implemented additional problem-class for Rosenbauer-Problemstatement; Added marker-interfaces for decoder-types;

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  
    3030  [Item("Grouping Vector Crossover", "An operator which crosses two GroupingVector representations.")]
    3131  [StorableClass]
    32   public class GroupingVectorCrossover : PackingSolutionCrossover, IGroupingVectorOperator {
     32  public abstract class GroupingVectorCrossover : PackingSolutionCrossover, IGroupingVectorOperator {
    3333
    3434    [StorableConstructor]
     
    4040        ChildParameter.ActualName = "GroupingVector";
    4141    }
    42     public override IDeepCloneable Clone(Cloner cloner) {
    43       return new GroupingVectorCrossover(this, cloner);
    44     }
    4542
    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);
    5144
    5245    public override IOperation Apply() {
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/GroupingVectorRandomCreator.cs

    r9440 r9563  
    6868    }
    6969
    70     protected override IPackingSolutionEncoding CreateSolution() {
     70    protected override IItem CreateSolution() {
    7171      return Apply(PackingItemsParameter.ActualValue.Value, LowerBoundParameter.ActualValue.Value, RandomParameter.ActualValue);
    7272    }
Note: See TracChangeset for help on using the changeset viewer.