Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/14/19 15:55:34 (5 years ago)
Author:
pfleck
Message:

#2707 Adapted to HEAL.Attic changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Creators/ClusterCreator.cs

    r14424 r17011  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2828using HeuristicLab.Optimization;
    2929using HeuristicLab.Parameters;
    30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3130using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3231using HeuristicLab.Problems.VehicleRouting.ProblemInstances;
    3332using HeuristicLab.Problems.VehicleRouting.Variants;
    3433using HeuristicLab.Random;
     34using HEAL.Attic;
    3535
    3636namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    3737  [Item("ClusterCreator", "Creates a VRP solution by clustering customers first with a KMeans-algorithm and building tours afterwards alternatevly in a random or a greedy fashion.")]
    38   [StorableClass]
     38  [StorableType("B57A7C93-FE0B-4D3E-BC2D-DD2B8F4323CB")]
    3939  public abstract class ClusterCreator : PotvinCreator, IStochasticOperator {
    4040
     
    5959
    6060    [StorableConstructor]
    61     public ClusterCreator(bool deserializing) : base(deserializing) { }
     61    public ClusterCreator(StorableConstructorFlag _) : base(_) { }
    6262
    6363    public ClusterCreator() : base() {
     
    6565      Parameters.Add(new ValueParameter<IntValue>("MinK", "Minimum number of clusters which should be created", new IntValue(1)));
    6666      Parameters.Add(new OptionalValueParameter<IntValue>("MaxK", "Maximum number of clusters which should be created"));
    67       Parameters.Add(new ValueParameter<DoubleValue>("ClusterChangeThreshold", "A certain ratio below which a cluster should be considered as computed satisfactory", new DoubleValue(0.0)));     
    68       Parameters.Add(new ValueParameter<DoubleArray>("TourCreationProbabilities", "This weightage array denotes the probability which tour creation method is employed: [shuffled; greedy]", new DoubleArray(new double[] {1, 1})));
     67      Parameters.Add(new ValueParameter<DoubleValue>("ClusterChangeThreshold", "A certain ratio below which a cluster should be considered as computed satisfactory", new DoubleValue(0.0)));
     68      Parameters.Add(new ValueParameter<DoubleArray>("TourCreationProbabilities", "This weightage array denotes the probability which tour creation method is employed: [shuffled; greedy]", new DoubleArray(new double[] { 1, 1 })));
    6969    }
    7070
Note: See TracChangeset for help on using the changeset viewer.