Changeset 8053 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Manipulators/AlbaLambdaInterchangeManipulator.cs
- Timestamp:
- 06/19/12 13:17:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Manipulators/AlbaLambdaInterchangeManipulator.cs
r4752 r8053 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using HeuristicLab.Core;23 using HeuristicLab.Encodings.PermutationEncoding;24 using HeuristicLab.Parameters;25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HeuristicLab.Data;27 22 using System; 28 23 using System.Collections.Generic; 29 24 using HeuristicLab.Common; 25 using HeuristicLab.Core; 26 using HeuristicLab.Data; 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 29 31 30 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { … … 36 35 get { return (IValueParameter<IntValue>)Parameters["Lambda"]; } 37 36 } 38 37 39 38 [StorableConstructor] 40 39 private AlbaLambdaInterchangeManipulator(bool deserializing) : base(deserializing) { } … … 42 41 public AlbaLambdaInterchangeManipulator() 43 42 : base() { 44 45 43 Parameters.Add(new ValueParameter<IntValue>("Lambda", "The lambda value.", new IntValue(1))); 44 } 46 45 47 46 public override IDeepCloneable Clone(Cloner cloner) { … … 53 52 } 54 53 55 public static void Apply(AlbaEncoding individual, int tour1Index, int position1, int length1, 54 public static void Apply(AlbaEncoding individual, int tour1Index, int position1, int length1, 56 55 int tour2Index, int position2, int length2) { 57 56 List<Tour> tours = individual.GetTours();
Note: See TracChangeset
for help on using the changeset viewer.