Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/26/12 00:36:45 (12 years ago)
Author:
abeham
Message:

#1614

  • renamed AssemblyInfo frame files to proper name
  • fixed discovery of move operators
  • fixed a bug in the move evaluator
  • fixed a bug in the DiscreteLocationCrossover
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Moves/GQAPMoveGenerator.cs

    r7407 r7413  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
     24using HeuristicLab.Encodings.IntegerVectorEncoding;
    2425using HeuristicLab.Operators;
    2526using HeuristicLab.Optimization;
     27using HeuristicLab.Parameters;
    2628using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2729
     
    2931  [Item("GQAPMoveGenerator", "Base class for move generators for the Generalized Quadratic Assignment Problem.")]
    3032  [StorableClass]
    31   public class GQAPMoveGenerator : SingleSuccessorOperator, IMoveGenerator {
     33  public abstract class GQAPMoveGenerator : SingleSuccessorOperator, IMoveGenerator, IGQAPMoveOperator {
     34
     35    public ILookupParameter<IntegerVector> AssignmentParameter {
     36      get { return (ILookupParameter<IntegerVector>)Parameters["Assignment"]; }
     37    }
    3238
    3339    [StorableConstructor]
    3440    protected GQAPMoveGenerator(bool deserializing) : base(deserializing) { }
    35     protected GQAPMoveGenerator(GQAPMoveGenerator original, Cloner cloner)
    36       : base(original, cloner) {
    37       // TODO: All fields, especially storable fields, need to be deep-cloned here
    38       // myField = cloner.Clone(original.myField);
    39     }
     41    protected GQAPMoveGenerator(GQAPMoveGenerator original, Cloner cloner) : base(original, cloner) { }
    4042    public GQAPMoveGenerator()
    4143      : base() {
    42       // TODO: Add construction logic here
    43     }
    44 
    45     public override IDeepCloneable Clone(Cloner cloner) {
    46       return new GQAPMoveGenerator(this, cloner);
     44      Parameters.Add(new LookupParameter<IntegerVector>("Assignment", "The current equipment-location assignment."));
    4745    }
    4846  }
Note: See TracChangeset for help on using the changeset viewer.