Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (8 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/PathRelinkers/VRPPathRelinker.cs

    r14185 r14927  
    2929using HeuristicLab.Optimization.Operators;
    3030using HeuristicLab.Parameters;
    31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     31using HeuristicLab.Persistence;
    3232using HeuristicLab.Problems.VehicleRouting.Encodings.Potvin;
    3333using HeuristicLab.Problems.VehicleRouting.Interfaces;
     
    4040  /// </summary>
    4141  [Item("VRPPathRelinker", "An operator which relinks paths between VRP solutions.")]
    42   [StorableClass]
     42  [StorableType("d8a2168a-10ac-4a17-b8ab-0b2617092dde")]
    4343  public sealed class VRPPathRelinker : SingleObjectivePathRelinker, IGeneralVRPOperator, IStochasticOperator {
    4444    #region Parameter properties
     
    102102            int neighborhood = rand.Next(3);
    103103            switch (neighborhood) {
    104               case 0: next = RouteBasedXOver(next, guide, rand,
    105                 problemInstance);
     104              case 0:
     105                next = RouteBasedXOver(next, guide, rand,
     106          problemInstance);
    106107                break;
    107               case 1: next = SequenceBasedXOver(next, guide, rand,
    108                 problemInstance);
     108              case 1:
     109                next = SequenceBasedXOver(next, guide, rand,
     110          problemInstance);
    109111                break;
    110               case 2: GuidedRelocateMove(next, guide, rand);
     112              case 2:
     113                GuidedRelocateMove(next, guide, rand);
    111114                break;
    112115            }
Note: See TracChangeset for help on using the changeset viewer.