Changeset 15504 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Moves/NMoveTabuMaker.cs
- Timestamp:
- 12/10/17 22:11:10 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Moves/NMoveTabuMaker.cs
r7505 r15504 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Data;25 24 using HeuristicLab.Encodings.IntegerVectorEncoding; 26 25 using HeuristicLab.Optimization.Operators; … … 31 30 [Item("N-Move TabuMaker", "Declares an N-Move tabu.")] 32 31 [StorableClass] 33 public class NMoveTabuMaker : TabuMaker, IGQAPNMoveOperator, IAssignmentAwareGQAPOperator, 34 IMoveQualityAwareGQAPOperator { 32 public class NMoveTabuMaker : TabuMaker, IGQAPNMoveOperator, IMoveQualityAwareGQAPOperator { 35 33 36 34 public ILookupParameter<IntegerVector> AssignmentParameter { … … 40 38 get { return (ILookupParameter<NMove>)Parameters["Move"]; } 41 39 } 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"]; } 53 42 } 54 43 … … 60 49 Parameters.Add(new LookupParameter<IntegerVector>("Assignment", GQAPSolutionCreator.AssignmentDescription)); 61 50 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)); 65 52 } 66 53
Note: See TracChangeset
for help on using the changeset viewer.