Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/21/21 15:31:20 (3 years ago)
Author:
abeham
Message:

#2521: updated samples (except for GPR - unit test needs to be refactored first)

  • Fixed a few bugs in VRP
  • Fixed the GAGroupingProblemSampleTest
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/VRPEncoding.cs

    r17718 r17954  
    2020#endregion
    2121
     22using System;
     23using System.Collections.Generic;
    2224using System.Linq;
    2325using HEAL.Attic;
     
    3133  [StorableType("2bb0d7d5-d842-4cf7-8242-1d49940aa4b6")]
    3234  public abstract class VRPEncoding : Encoding, IVRPEncoding {
     35    private static HashSet<Type> encodingOperatorTypes = new HashSet<Type>() { typeof(Alba.IAlbaOperator), typeof(GVR.IGVROperator),
     36      typeof(Potvin.IPotvinOperator), typeof(Prins.IPrinsOperator), typeof(Zhu.IZhuOperator) };
     37    public static IReadOnlyCollection<Type> EncodingOperatorTypes => encodingOperatorTypes.ToList().AsReadOnly();
    3338
    3439    [StorableConstructor]
Note: See TracChangeset for help on using the changeset viewer.