Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/05/12 08:34:36 (12 years ago)
Author:
svonolfe
Message:

Merged changes from trunk into branch (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4

  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPProblemInstance.cs

    r7864 r7958  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    26 using HeuristicLab.Problems.VehicleRouting.Interfaces;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HeuristicLab.Common;
    2826using HeuristicLab.Core;
    29 using HeuristicLab.Parameters;
    3027using HeuristicLab.Data;
    3128using HeuristicLab.Optimization;
     29using HeuristicLab.Parameters;
     30using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3231using HeuristicLab.PluginInfrastructure;
     32using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3333using HeuristicLab.Problems.VehicleRouting.Variants;
    34 using HeuristicLab.Common;
    3534
    3635namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
    3736  [Item("CVRPProblemInstance", "Represents a single depot CVRP instance.")]
    3837  [StorableClass]
    39   public class CVRPProblemInstance: SingleDepotVRPProblemInstance, IHomogenousCapacitatedProblemInstance {
     38  public class CVRPProblemInstance : SingleDepotVRPProblemInstance, IHomogenousCapacitatedProblemInstance {
    4039    protected IValueParameter<DoubleValue> CapacityParameter {
    4140      get { return (IValueParameter<DoubleValue>)Parameters["Capacity"]; }
     
    6059          return currentOverloadPenalty;
    6160        else
    62           return OverloadPenaltyParameter.Value; }
     61          return OverloadPenaltyParameter.Value;
     62      }
    6363      set { CurrentOverloadPenaltyParameter.Value = value; }
    6464    }
    6565
    6666    protected override IEnumerable<IOperator> GetOperators() {
    67         return base.GetOperators()
    68           .Where(o => o is IHomogenousCapacitatedOperator).Cast<IOperator>();
     67      return base.GetOperators()
     68        .Where(o => o is IHomogenousCapacitatedOperator).Cast<IOperator>();
    6969    }
    7070
     
    8080      }
    8181    }
    82    
     82
    8383    [StorableConstructor]
    8484    protected CVRPProblemInstance(bool deserializing) : base(deserializing) { }
     
    9898    protected CVRPProblemInstance(CVRPProblemInstance original, Cloner cloner)
    9999      : base(original, cloner) {
    100         AttachEventHandlers();
     100      AttachEventHandlers();
    101101    }
    102102
    103103    [StorableHook(HookType.AfterDeserialization)]
    104     private void AfterDeserializationHook() {
     104    private void AfterDeserialization() {
    105105      AttachEventHandlers();
    106106    }
Note: See TracChangeset for help on using the changeset viewer.