Changeset 17010 for branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW
- Timestamp:
- 06/14/19 15:47:37 (6 years ago)
- Location:
- branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
-
branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWEvaluation.cs
r14185 r17010 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWEvaluator.cs
r14185 r17010 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 26 26 using HeuristicLab.Data; 27 27 using HeuristicLab.Parameters; 28 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HEAL.Attic; 29 29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 30 using HeuristicLab.Problems.VehicleRouting.Variants; … … 32 32 namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances { 33 33 [Item("CVRPPDTWEvaluator", "Represents a single depot CVRPPDTW evaluator.")] 34 [Storable Class]34 [StorableType("6324F32C-727E-4593-BB21-4625755F844A")] 35 35 public class CVRPPDTWEvaluator : CVRPTWEvaluator { 36 36 public ILookupParameter<IntValue> PickupViolationsParameter { … … 306 306 307 307 [StorableConstructor] 308 protected CVRPPDTWEvaluator( bool deserializing) : base(deserializing) { }308 protected CVRPPDTWEvaluator(StorableConstructorFlag _) : base(_) { } 309 309 310 310 public CVRPPDTWEvaluator() { -
branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWProblemInstance.cs
r14185 r17010 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 using HeuristicLab.Optimization; 29 29 using HeuristicLab.Parameters; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;30 using HEAL.Attic; 31 31 using HeuristicLab.PluginInfrastructure; 32 32 using HeuristicLab.Problems.VehicleRouting.Interfaces; … … 35 35 namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances { 36 36 [Item("CVRPPDTWProblemInstance", "Represents a single depot CVRPPDTW instance.")] 37 [Storable Class]37 [StorableType("6DC3F907-9CDC-4CDA-8C84-AC9ED248DB3B")] 38 38 public class CVRPPDTWProblemInstance : CVRPTWProblemInstance, IPickupAndDeliveryProblemInstance { 39 39 protected IValueParameter<IntArray> PickupDeliveryLocationParameter { … … 91 91 92 92 [StorableConstructor] 93 protected CVRPPDTWProblemInstance( bool deserializing) : base(deserializing) { }93 protected CVRPPDTWProblemInstance(StorableConstructorFlag _) : base(_) { } 94 94 95 95 public CVRPPDTWProblemInstance() { … … 117 117 118 118 private void AttachEventHandlers() { 119 PickupDeliveryLocationParameter.ValueChanged += new EventHandler(PickupDeliveryLocationParameter_ValueChanged); 119 PickupDeliveryLocationParameter.ValueChanged += PickupDeliveryLocationParameter_ValueChanged; 120 PickupDeliveryLocation.Reset += PickupDeliveryLocation_Changed; 121 PickupDeliveryLocation.ItemChanged += PickupDeliveryLocation_Changed; 120 122 } 121 123 … … 128 130 #region Event handlers 129 131 void PickupDeliveryLocationParameter_ValueChanged(object sender, EventArgs e) { 130 PickupDeliveryLocationParameter.Value.ItemChanged += new EventHandler<EventArgs<int>>(Value_ItemChanged); 132 PickupDeliveryLocation.Reset += PickupDeliveryLocation_Changed; 133 PickupDeliveryLocation.ItemChanged += PickupDeliveryLocation_Changed; 131 134 EvalBestKnownSolution(); 132 135 } 133 134 void Value_ItemChanged(object sender, EventArgs<int> e) { 136 private void PickupDeliveryLocation_Changed(object sender, EventArgs e) { 135 137 EvalBestKnownSolution(); 136 138 }
Note: See TracChangeset
for help on using the changeset viewer.