Changeset 7864 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPTW/MDCVRPPDTW
- Timestamp:
- 05/22/12 09:38:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPTW/MDCVRPPDTW/MDCVRPPDTWProblemInstance.cs
r6856 r7864 50 50 } 51 51 52 [Storable] 53 private DoubleValue currentPickupViolationPenalty; 52 protected IValueParameter<DoubleValue> CurrentPickupViolationPenaltyParameter { 53 get { return (IValueParameter<DoubleValue>)Parameters["CurrentPickupViolationPenalty"]; } 54 } 54 55 55 56 public DoubleValue PickupViolationPenalty { 56 57 get { 58 DoubleValue currentPickupViolationPenalty = CurrentPickupViolationPenaltyParameter.Value; 57 59 if (currentPickupViolationPenalty != null) 58 60 return currentPickupViolationPenalty; … … 60 62 return PickupViolationPenaltyParameter.Value; 61 63 } 62 set { currentPickupViolationPenalty= value; }64 set { CurrentPickupViolationPenaltyParameter.Value = value; } 63 65 } 64 66 … … 93 95 94 96 Parameters.Add(new ValueParameter<DoubleValue>("EvalPickupViolationPenalty", "The pickup violation penalty considered in the evaluation.", new DoubleValue(100))); 97 Parameters.Add(new OptionalValueParameter<DoubleValue>("CurrentPickupViolationPenalty", "The current pickup violation penalty considered in the evaluation.")); 95 98 96 99 AttachEventHandlers(); … … 103 106 protected MDCVRPPDTWProblemInstance(MDCVRPPDTWProblemInstance original, Cloner cloner) 104 107 : base(original, cloner) { 105 currentPickupViolationPenalty = cloner.Clone(original.currentPickupViolationPenalty) as DoubleValue;106 107 108 AttachEventHandlers(); 108 109 } … … 120 121 base.InitializeState(); 121 122 122 currentPickupViolationPenalty= null;123 CurrentPickupViolationPenaltyParameter.Value = null; 123 124 } 124 125
Note: See TracChangeset
for help on using the changeset viewer.