Changeset 6711 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWProblemInstance.cs
- Timestamp:
- 09/06/11 14:57:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWProblemInstance.cs
r6710 r6711 50 50 } 51 51 52 [Storable] 53 private DoubleValue currentPickupViolationPenalty; 54 52 55 public DoubleValue PickupViolationPenalty { 53 get { return PickupViolationPenaltyParameter.Value; } 54 set { PickupViolationPenaltyParameter.Value = value; } 56 get { 57 if (currentPickupViolationPenalty != null) 58 return currentPickupViolationPenalty; 59 else 60 return PickupViolationPenaltyParameter.Value; 61 } 62 set { currentPickupViolationPenalty = value; } 55 63 } 56 64 … … 90 98 protected CVRPPDTWProblemInstance(CVRPPDTWProblemInstance original, Cloner cloner) 91 99 : base(original, cloner) { 100 currentPickupViolationPenalty = cloner.Clone(original.currentPickupViolationPenalty) as DoubleValue; 101 92 102 AttachEventHandlers(); 93 103 } … … 100 110 private void AttachEventHandlers() { 101 111 PickupDeliveryLocationParameter.ValueChanged += new EventHandler(PickupDeliveryLocationParameter_ValueChanged); 112 } 113 114 public override void InitializeState() { 115 base.InitializeState(); 116 117 currentPickupViolationPenalty = null; 102 118 } 103 119
Note: See TracChangeset
for help on using the changeset viewer.