Changeset 17011 for branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Creators/ClusterCreator.cs
- Timestamp:
- 06/14/19 15:55:34 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Creators/ClusterCreator.cs
r14424 r17011 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 using HeuristicLab.Optimization; 29 29 using HeuristicLab.Parameters; 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;31 30 using HeuristicLab.Problems.VehicleRouting.Interfaces; 32 31 using HeuristicLab.Problems.VehicleRouting.ProblemInstances; 33 32 using HeuristicLab.Problems.VehicleRouting.Variants; 34 33 using HeuristicLab.Random; 34 using HEAL.Attic; 35 35 36 36 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin { 37 37 [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 [Storable Class]38 [StorableType("B57A7C93-FE0B-4D3E-BC2D-DD2B8F4323CB")] 39 39 public abstract class ClusterCreator : PotvinCreator, IStochasticOperator { 40 40 … … 59 59 60 60 [StorableConstructor] 61 public ClusterCreator( bool deserializing) : base(deserializing) { }61 public ClusterCreator(StorableConstructorFlag _) : base(_) { } 62 62 63 63 public ClusterCreator() : base() { … … 65 65 Parameters.Add(new ValueParameter<IntValue>("MinK", "Minimum number of clusters which should be created", new IntValue(1))); 66 66 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 }))); 69 69 } 70 70
Note: See TracChangeset
for help on using the changeset viewer.