Changeset 17704 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba
- Timestamp:
- 07/28/20 23:36:25 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/AlbaEncoding.cs
r17699 r17704 28 28 using HeuristicLab.Optimization; 29 29 using HeuristicLab.PluginInfrastructure; 30 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 31 31 32 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { … … 54 55 static AlbaEncoding() { 55 56 encodingSpecificOperatorTypes = new List<Type>() { 56 typeof (IAlbaOperator) 57 typeof (IAlbaOperator), 58 typeof (IVRPCreator), 59 typeof (IMultiVRPOperator) 57 60 }; 58 61 } … … 63 66 var newOperators = operators.Except(Operators, new TypeEqualityComparer<IOperator>()).ToList(); 64 67 68 foreach (var op in newOperators.OfType<IMultiVRPOperator>().ToList()) { 69 op.SetOperators(Operators.Concat(newOperators)); 70 if (!op.Operators.Any()) newOperators.Remove(op); 71 } 72 foreach (var op in Operators.OfType<IMultiVRPOperator>()) { 73 op.SetOperators(newOperators); 74 } 65 75 ConfigureOperators(newOperators); 66 76 foreach (var @operator in newOperators) -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/LocalImprovement/AlbaLambdaInterchangeLocalImprovementOperator.cs
r17698 r17704 20 20 #endregion 21 21 22 using HEAL.Attic; 23 using HeuristicLab.Common; 24 using HeuristicLab.Core; 25 using HeuristicLab.Data; 22 26 using HeuristicLab.Optimization; 23 using HeuristicLab.Core;24 using HEAL.Attic;25 using HeuristicLab.Data;26 using HeuristicLab.Common;27 27 using HeuristicLab.Parameters; 28 28 using HeuristicLab.Problems.VehicleRouting.Interfaces; … … 31 31 [Item("AlbaLambdaInterchangeLocalImprovementOperator", "Takes a solution and finds the local optimum with respect to the lambda interchange neighborhood by decending along the steepest gradient.")] 32 32 [StorableType("84981F03-B886-4ADD-8DB5-C12628404335")] 33 public class AlbaLambdaInterchangeLocalImprovementOperator : VRPOperator, IStochasticOperator, ILocalImprovementOperator, ISingleObjectiveOperator {33 public class AlbaLambdaInterchangeLocalImprovementOperator : VRPOperator, IStochasticOperator, ILocalImprovementOperator, ISingleObjectiveOperator, IAlbaOperator { 34 34 35 35 public IValueLookupParameter<IntValue> MaximumIterationsParameter {
Note: See TracChangeset
for help on using the changeset viewer.