Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10924 for trunk/sources


Ignore:
Timestamp:
06/02/14 13:53:08 (10 years ago)
Author:
pfleck
Message:

#2190: The PotvinCustomerRelocationMoveTabuCriterion now checkes only PotvinCustomerRelocationMoveAttributes in the TabuList in case there are different types (i.e. when the MultiVRPMoveGenerator is used).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMoveTabuCriterion.cs

    r9456 r10924  
    2020#endregion
    2121
     22using System.Linq;
    2223using HeuristicLab.Common;
    2324using HeuristicLab.Core;
     
    9899      PotvinCustomerRelocationMove move = CustomerRelocationMoveParameter.ActualValue;
    99100
    100       foreach (IItem tabuMove in tabuList) {
    101         PotvinCustomerRelocationMoveAttribute attribute = tabuMove as PotvinCustomerRelocationMoveAttribute;
    102 
     101      foreach (var attribute in tabuList.OfType<PotvinCustomerRelocationMoveAttribute>()) {
    103102        if (!useAspiration || moveQuality >= attribute.MoveQuality) {
    104103          if (attribute.City == move.City && attribute.Tour == move.Tour) {
Note: See TracChangeset for help on using the changeset viewer.