Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/28/20 23:36:25 (4 years ago)
Author:
abeham
Message:

#2521: worked on VRP

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  
    2828using HeuristicLab.Optimization;
    2929using HeuristicLab.PluginInfrastructure;
     30using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3031
    3132namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba {
     
    5455    static AlbaEncoding() {
    5556      encodingSpecificOperatorTypes = new List<Type>() {
    56           typeof (IAlbaOperator)
     57          typeof (IAlbaOperator),
     58          typeof (IVRPCreator),
     59          typeof (IMultiVRPOperator)
    5760      };
    5861    }
     
    6366      var newOperators = operators.Except(Operators, new TypeEqualityComparer<IOperator>()).ToList();
    6467
     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      }
    6575      ConfigureOperators(newOperators);
    6676      foreach (var @operator in newOperators)
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/LocalImprovement/AlbaLambdaInterchangeLocalImprovementOperator.cs

    r17698 r17704  
    2020#endregion
    2121
     22using HEAL.Attic;
     23using HeuristicLab.Common;
     24using HeuristicLab.Core;
     25using HeuristicLab.Data;
    2226using HeuristicLab.Optimization;
    23 using HeuristicLab.Core;
    24 using HEAL.Attic;
    25 using HeuristicLab.Data;
    26 using HeuristicLab.Common;
    2727using HeuristicLab.Parameters;
    2828using HeuristicLab.Problems.VehicleRouting.Interfaces;
     
    3131  [Item("AlbaLambdaInterchangeLocalImprovementOperator", "Takes a solution and finds the local optimum with respect to the lambda interchange neighborhood by decending along the steepest gradient.")]
    3232  [StorableType("84981F03-B886-4ADD-8DB5-C12628404335")]
    33   public class AlbaLambdaInterchangeLocalImprovementOperator : VRPOperator, IStochasticOperator, ILocalImprovementOperator, ISingleObjectiveOperator {
     33  public class AlbaLambdaInterchangeLocalImprovementOperator : VRPOperator, IStochasticOperator, ILocalImprovementOperator, ISingleObjectiveOperator, IAlbaOperator {
    3434
    3535    public IValueLookupParameter<IntValue> MaximumIterationsParameter {
Note: See TracChangeset for help on using the changeset viewer.