Ignore:
Timestamp:
07/12/16 19:34:31 (5 years ago)
Author:
gkronber
Message:

#1966: unified namespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/PackingSequence/Moves/SequenceTabuMaker.cs

    r13032 r14046  
    2626using HeuristicLab.Parameters;
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using HeuristicLab.Problems.BinPacking.Interfaces;
     28using HeuristicLab.Problems.BinPacking;
    2929
    3030namespace HeuristicLab.Encodings.PackingEncoding.PackingSequence {
    3131  [Item("Sequence tabu maker", "Declares a given Sequence move as tabu, by adding its attributes to the tabu list and also store the solution quality or the move quality (whichever is better).")]
    3232  [StorableClass]
    33   public class SequenceTabuMaker : TabuMaker, IPackingSequenceMoveOperator{
     33  public class SequenceTabuMaker : TabuMaker, IPackingSequenceMoveOperator {
    3434    public ILookupParameter<IPackingMove> PackingMoveParameter {
    3535      get { return (ILookupParameter<IPackingMove>)Parameters["PackingMove"]; }
     
    4444    public SequenceTabuMaker()
    4545      : base() {
    46         Parameters.Add(new LookupParameter<IPackingMove>("PackingMove", "The move to evaluate."));
     46      Parameters.Add(new LookupParameter<IPackingMove>("PackingMove", "The move to evaluate."));
    4747      Parameters.Add(new LookupParameter<PackingSequenceEncoding>("PackingSequence", "The solution to evaluate."));
    4848    }
     
    5454    protected override IItem GetTabuAttribute(bool maximization, double quality, double moveQuality) {
    5555      IPackingMove move = PackingMoveParameter.ActualValue;
    56       PackingSequenceEncoding PackingSequence = PackingSequenceParameter.ActualValue;   
     56      PackingSequenceEncoding PackingSequence = PackingSequenceParameter.ActualValue;
    5757      double baseQuality = moveQuality;
    58       if (maximization && quality > moveQuality || !maximization && quality < moveQuality) 
     58      if (maximization && quality > moveQuality || !maximization && quality < moveQuality)
    5959        baseQuality = quality; // we make an uphill move, the lower bound is the solution quality
    6060
Note: See TracChangeset for help on using the changeset viewer.