Changeset 4625 for trunk/sources/HeuristicLab.Problems.VehicleRouting
- Timestamp:
- 10/20/10 13:28:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs
r4620 r4625 198 198 private VehicleRoutingProblem(bool deserializing) : base(deserializing) { } 199 199 200 #region Backwards Compatibility201 [StorableHook(Persistence.Default.CompositeSerializers.Storable.HookType.AfterDeserialization)]202 private void CheckParameters() {203 if (!Parameters.ContainsKey("BestKnownSolution")) {204 Parameters.Add(new OptionalValueParameter<IVRPEncoding>("BestKnownSolution", "The best known solution of this TSP instance."));205 }206 }207 #endregion208 209 200 public VehicleRoutingProblem() 210 201 : base() { … … 444 435 [StorableHook(HookType.AfterDeserialization)] 445 436 private void AfterDeserializationHook() { 437 #region Backwards Compatibility 438 if (!Parameters.ContainsKey("BestKnownSolution")) { 439 Parameters.Add(new OptionalValueParameter<IVRPEncoding>("BestKnownSolution", "The best known solution of this TSP instance.")); 440 } 441 #endregion 442 446 443 AttachEventHandlers(); 447 444 }
Note: See TracChangeset
for help on using the changeset viewer.