Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/15/11 16:32:43 (13 years ago)
Author:
svonolfe
Message:

Added support for multiple moves in tabu search (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMove.cs

    r6751 r6772  
    2828using HeuristicLab.Data;
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
     30using HeuristicLab.Optimization;
    3031
    3132namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
     
    8384    }
    8485
     86    public ITabuMaker GetTabuMaker() {
     87      return new PotvinCustomerRelocationMoveTabuMaker();
     88    }
     89
     90    public ITabuChecker GetTabuChecker() {
     91      return new PotvinCustomerRelocationMoveTabuCriterion();
     92    }
     93
     94    public ITabuChecker GetSoftTabuChecker() {
     95      PotvinCustomerRelocationMoveTabuCriterion tabuChecker = new PotvinCustomerRelocationMoveTabuCriterion();
     96      tabuChecker.UseAspirationCriterion.Value = true;
     97
     98      return tabuChecker;
     99    }
     100
    85101    #endregion
    86102  }
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMoveTabuCriterion.cs

    r5127 r6772  
    3232  [Item("PotvinCustomerRelocationTabuCriterion", @"Checks if a certain customer relocation move is tabu.")]
    3333  [StorableClass]
    34   public class PotvinCustomerRelocationMoveTabuCriterion : SingleSuccessorOperator, IPotvinCustomerRelocationMoveOperator, ITabuChecker, IPotvinOperator {
     34  public class PotvinCustomerRelocationMoveTabuCriterion : SingleSuccessorOperator, IPotvinCustomerRelocationMoveOperator, ITabuChecker, IPotvinOperator, IVRPMoveOperator {
    3535    public override bool CanChangeName {
    3636      get { return false; }
Note: See TracChangeset for help on using the changeset viewer.