Changeset 8053 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/LambdaInterchange/AlbaLambdaInterchangeMove.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/Moves/LambdaInterchange/AlbaLambdaInterchangeMove.cs
r7906 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.Common; 22 23 using HeuristicLab.Core; 24 using HeuristicLab.Optimization; 23 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 24 using HeuristicLab.Encodings.PermutationEncoding;25 using HeuristicLab.Common;26 using System.Collections.Generic;27 26 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 28 using HeuristicLab.Data;29 27 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 using HeuristicLab.Optimization;31 28 32 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { 33 30 [Item("AlbaLambdaInterchangeMove", "Item that describes a lambda move on a VRP representation. It is implemented as described in Alba, E. and Dorronsoro, B. (2004). Solving the Vehicle Routing Problem by Using Cellular Genetic Algorithms.")] 34 31 [StorableClass] 35 public class AlbaLambdaInterchangeMove : Item, IVRPMove {32 public class AlbaLambdaInterchangeMove : Item, IVRPMove { 36 33 [Storable] 37 34 public IVRPEncoding Individual { get; protected set; } 38 35 39 36 [Storable] 40 37 public int Tour1 { get; protected set; } … … 54 51 [Storable] 55 52 public int Length2 { get; protected set; } 56 57 public AlbaLambdaInterchangeMove(): base() { 53 54 public AlbaLambdaInterchangeMove() 55 : base() { 58 56 Tour1 = -1; 59 57 Position1 = -1; … … 67 65 } 68 66 69 public AlbaLambdaInterchangeMove(int tour1, int position1, int length1, 67 public AlbaLambdaInterchangeMove(int tour1, int position1, int length1, 70 68 int tour2, int position2, int length2, AlbaEncoding permutation) { 71 72 73 69 Tour1 = tour1; 70 Position1 = position1; 71 Length1 = length1; 74 72 75 76 77 73 Tour2 = tour2; 74 Position2 = position2; 75 Length2 = length2; 78 76 79 77 this.Individual = permutation.Clone() as AlbaEncoding; 80 78 } 81 79
Note: See TracChangeset
for help on using the changeset viewer.