Changeset 17954 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/ZhuEncoding.cs
- Timestamp:
- 04/21/21 15:31:20 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/ZhuEncoding.cs
r17718 r17954 64 64 var assembly = typeof(IZhuOperator).Assembly; 65 65 var discoveredTypes = ApplicationManager.Manager.GetTypes(encodingSpecificOperatorTypes, assembly, true, false, false); 66 discoveredTypes = discoveredTypes.Where(x => EncodingOperatorTypes.Except(new[] { typeof(IZhuOperator) }).All(y => !y.IsAssignableFrom(x))); 66 67 var operators = discoveredTypes.Select(t => (IOperator)Activator.CreateInstance(t)); 67 68 var newOperators = operators.Except(Operators, new TypeEqualityComparer<IOperator>()).ToList();
Note: See TracChangeset
for help on using the changeset viewer.