Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/17 22:11:10 (6 years ago)
Author:
abeham
Message:

#1614: refactored code

  • change problem to derive from basic problem
  • using a combined instance class instead of individual parameters
File:
1 edited

Legend:

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

    r7505 r15504  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
    24 using HeuristicLab.Data;
    2524using HeuristicLab.Encodings.IntegerVectorEncoding;
    2625using HeuristicLab.Optimization.Operators;
     
    3130  [Item("N-Move TabuMaker", "Declares an N-Move tabu.")]
    3231  [StorableClass]
    33   public class NMoveTabuMaker : TabuMaker, IGQAPNMoveOperator, IAssignmentAwareGQAPOperator,
    34     IMoveQualityAwareGQAPOperator {
     32  public class NMoveTabuMaker : TabuMaker, IGQAPNMoveOperator, IMoveQualityAwareGQAPOperator {
    3533
    3634    public ILookupParameter<IntegerVector> AssignmentParameter {
     
    4038      get { return (ILookupParameter<NMove>)Parameters["Move"]; }
    4139    }
    42     ILookupParameter<BoolValue> IMoveQualityAwareGQAPOperator.MaximizationParameter {
    43       get { return (ILookupParameter<BoolValue>)MaximizationParameter; }
    44     }
    45     public ILookupParameter<DoubleValue> MoveFlowDistanceQualityParameter {
    46       get { return (ILookupParameter<DoubleValue>)Parameters["MoveFlowDistanceQuality"]; }
    47     }
    48     public ILookupParameter<DoubleValue> MoveInstallationQualityParameter {
    49       get { return (ILookupParameter<DoubleValue>)Parameters["MoveInstallationQuality"]; }
    50     }
    51     public ILookupParameter<DoubleValue> MoveOverbookedCapacityParameter {
    52       get { return (ILookupParameter<DoubleValue>)Parameters["MoveOverbookedCapacity"]; }
     40    public ILookupParameter<Evaluation> MoveEvaluationParameter {
     41      get { return (ILookupParameter<Evaluation>)Parameters["MoveEvaluation"]; }
    5342    }
    5443
     
    6049      Parameters.Add(new LookupParameter<IntegerVector>("Assignment", GQAPSolutionCreator.AssignmentDescription));
    6150      Parameters.Add(new LookupParameter<NMove>("Move", GQAPNMoveGenerator.MoveDescription));
    62       Parameters.Add(new LookupParameter<DoubleValue>("MoveFlowDistanceQuality", GQAPNMoveEvaluator.MoveFlowDistanceQualityDescription));
    63       Parameters.Add(new LookupParameter<DoubleValue>("MoveInstallationQuality", GQAPNMoveEvaluator.MoveInstallationQualityDescription));
    64       Parameters.Add(new LookupParameter<DoubleValue>("MoveOverbookedCapacity", GQAPNMoveEvaluator.MoveOverbookedCapacityDescription));
     51      Parameters.Add(new LookupParameter<Evaluation>("MoveEvaluation", GQAPNMoveEvaluator.MoveEvaluationDescription));
    6552    }
    6653
Note: See TracChangeset for help on using the changeset viewer.