Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (6 years ago)
Author:
jkarder
Message:

#2520: worked on reintegration of new persistence

  • added nuget references to HEAL.Fossil
  • added StorableType attributes to many classes
  • changed signature of StorableConstructors
  • removed some classes in old persistence
  • removed some unnecessary usings
Location:
branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Crossovers
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Crossovers/BiasedMultiVRPSolutionCrossover.cs

    r16453 r16462  
    2929using HeuristicLab.Optimization;
    3030using HeuristicLab.Parameters;
    31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     31using HEAL.Fossil;
    3232using HeuristicLab.Random;
    3333
    3434namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3535  [Item("BiasedMultiVRPSolutionCrossover", "Randomly selects and applies one of its crossovers every time it is called based on the success progress.")]
    36   [StorableClass]
     36  [StorableType("9F319402-CF27-4355-9764-B7DDECBA2A15")]
    3737  public class BiasedMultiVRPSolutionCrossover : MultiVRPSolutionCrossover {
    3838    public ValueLookupParameter<DoubleArray> ActualProbabilitiesParameter {
     
    5757
    5858    [StorableConstructor]
    59     protected BiasedMultiVRPSolutionCrossover(bool deserializing) : base(deserializing) { }
     59    protected BiasedMultiVRPSolutionCrossover(StorableConstructorFlag _) : base(_) { }
    6060    protected BiasedMultiVRPSolutionCrossover(BiasedMultiVRPSolutionCrossover original, Cloner cloner) : base(original, cloner) { }
    6161    public BiasedMultiVRPSolutionCrossover()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Crossovers/MultiVRPSolutionCrossover.cs

    r16453 r16462  
    2929using HeuristicLab.Optimization;
    3030using HeuristicLab.Parameters;
    31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     31using HEAL.Fossil;
    3232using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3333using HeuristicLab.Problems.VehicleRouting.Variants;
     
    3535namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3636  [Item("MultiVRPSolutionCrossover", "Randomly selects and applies one of its crossovers every time it is called.")]
    37   [StorableClass]
     37  [StorableType("68B26F83-1FF1-42B9-BDB8-606EC8C462C7")]
    3838  public class MultiVRPSolutionCrossover : StochasticMultiBranch<IVRPCrossover>, IVRPCrossover, IGeneralVRPOperator, IMultiVRPOperator, IStochasticOperator {
    3939    public override bool CanChangeName {
     
    5858
    5959    [StorableConstructor]
    60     protected MultiVRPSolutionCrossover(bool deserializing) : base(deserializing) { }
     60    protected MultiVRPSolutionCrossover(StorableConstructorFlag _) : base(_) { }
    6161    public MultiVRPSolutionCrossover()
    6262      : base() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Crossovers/RandomParentCloneCrossover.cs

    r16453 r16462  
    2424using HeuristicLab.Optimization;
    2525using HeuristicLab.Parameters;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HEAL.Fossil;
    2727using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2828using HeuristicLab.Problems.VehicleRouting.Variants;
     
    3030namespace HeuristicLab.Problems.VehicleRouting.Encodings.General.Crossovers {
    3131  [Item("RandomParentCloneCrossover", "An operator which randomly chooses one parent and returns a clone.")]
    32   [StorableClass]
     32  [StorableType("418EA2DE-C098-4A88-82B9-CB68732DB2AC")]
    3333  public sealed class RandomParentCloneCrossover : VRPOperator, IStochasticOperator, IGeneralVRPOperator, IVRPCrossover {
    3434    public ILookupParameter<IRandom> RandomParameter {
     
    4545
    4646    [StorableConstructor]
    47     private RandomParentCloneCrossover(bool deserializing) : base(deserializing) { }
     47    private RandomParentCloneCrossover(StorableConstructorFlag _) : base(_) { }
    4848
    4949    public RandomParentCloneCrossover()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Crossovers/VRPCrossover.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Parameters;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2727
    2828namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    2929  [Item("VRPCrossover", "Crosses VRP solutions.")]
    30   [StorableClass]
     30  [StorableType("E26BAD0A-49E6-477C-AEA0-CB41552F0B2B")]
    3131  public abstract class VRPCrossover : VRPOperator, IVRPCrossover {
    3232    public ILookupParameter<ItemArray<IVRPEncoding>> ParentsParameter {
     
    3939
    4040    [StorableConstructor]
    41     protected VRPCrossover(bool deserializing) : base(deserializing) { }
     41    protected VRPCrossover(StorableConstructorFlag _) : base(_) { }
    4242
    4343    public VRPCrossover()
Note: See TracChangeset for help on using the changeset viewer.