Changeset 8086 for branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General
- Timestamp:
- 06/22/12 11:11:38 (12 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 2 edited
- 35 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)
- Property svn:ignore
-
old new 20 20 bin 21 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting (added) merged: 7895,7900,7904,7906,7923,7934,7999,8006,8053
- Property svn:mergeinfo changed
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Creators/MultiVRPSolutionCreator.cs
r8052 r8086 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. … … 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HeuristicLab.Collections; 26 using HeuristicLab.Common; 25 27 using HeuristicLab.Core; 26 28 using HeuristicLab.Operators; … … 28 30 using HeuristicLab.Parameters; 29 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.PluginInfrastructure;31 using HeuristicLab.Data;32 32 using HeuristicLab.Problems.VehicleRouting.Interfaces; 33 33 using HeuristicLab.Problems.VehicleRouting.Variants; 34 using System.Collections.Generic;35 using HeuristicLab.Common;36 34 37 35 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Creators/VRPCreator.cs
r8052 r8086 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 System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 23 using HeuristicLab.Core; 24 using HeuristicLab.Parameters; 26 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Core;28 using HeuristicLab.Optimization;29 using HeuristicLab.Data;30 using HeuristicLab.Parameters;31 26 using HeuristicLab.Problems.VehicleRouting.Interfaces; 32 using HeuristicLab.Common;33 27 34 28 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { … … 45 39 public VRPCreator() 46 40 : base() { 47 41 Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours to be created.")); 48 42 } 49 43 -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Crossovers/MultiVRPSolutionCrossover.cs
r8052 r8086 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. … … 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HeuristicLab.Collections; 26 using HeuristicLab.Common; 25 27 using HeuristicLab.Core; 26 28 using HeuristicLab.Operators; … … 28 30 using HeuristicLab.Parameters; 29 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.PluginInfrastructure;31 using HeuristicLab.Data;32 32 using HeuristicLab.Problems.VehicleRouting.Interfaces; 33 33 using HeuristicLab.Problems.VehicleRouting.Variants; 34 using System.Collections.Generic;35 using HeuristicLab.Common;36 34 37 35 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { … … 90 88 91 89 public void SetOperators(IEnumerable<IOperator> operators) { 92 foreach (IOperator op in operators) {90 foreach (IOperator op in operators) { 93 91 if (op is IVRPCrossover && !(op is MultiVRPSolutionCrossover)) { 94 92 Operators.Add(op.Clone() as IVRPCrossover, true); -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Crossovers/RandomParentCloneCrossover.cs
r8052 r8086 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 System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 26 23 using HeuristicLab.Core; 27 24 using HeuristicLab.Optimization; … … 30 27 using HeuristicLab.Problems.VehicleRouting.Interfaces; 31 28 using HeuristicLab.Problems.VehicleRouting.Variants; 32 using HeuristicLab.Common;33 29 34 30 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General.Crossovers { … … 68 64 : base(original, cloner) { 69 65 } 70 66 71 67 public override IOperation Apply() { 72 68 if (RandomParameter.ActualValue.Next() < 0.5) -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Crossovers/VRPCrossover.cs
r8052 r8086 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 System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 23 using HeuristicLab.Core; 24 using HeuristicLab.Parameters; 26 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Core;28 using HeuristicLab.Optimization;29 using HeuristicLab.Data;30 using HeuristicLab.Parameters;31 26 using HeuristicLab.Problems.VehicleRouting.Interfaces; 32 using HeuristicLab.Common;33 27 34 28 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Manipulators/MultiVRPSolutionManipulator.cs
r8052 r8086 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. … … 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HeuristicLab.Collections; 26 using HeuristicLab.Common; 25 27 using HeuristicLab.Core; 26 28 using HeuristicLab.Operators; … … 28 30 using HeuristicLab.Parameters; 29 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.PluginInfrastructure;31 using HeuristicLab.Data;32 32 using HeuristicLab.Problems.VehicleRouting.Interfaces; 33 33 using HeuristicLab.Problems.VehicleRouting.Variants; 34 using System.Collections.Generic;35 using HeuristicLab.Common;36 34 37 35 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Manipulators/VRPManipulator.cs
r8052 r8086 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 System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 23 using HeuristicLab.Core; 24 using HeuristicLab.Parameters; 26 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Core;28 using HeuristicLab.Optimization;29 using HeuristicLab.Data;30 using HeuristicLab.Parameters;31 26 using HeuristicLab.Problems.VehicleRouting.Interfaces; 32 using HeuristicLab.Common;33 27 34 28 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { … … 45 39 public VRPManipulator() 46 40 : base() { 47 41 Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours to be manipulated.")); 48 42 } 49 43 -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/Interfaces/IMultiVRPMoveGenerator.cs
r8052 r8086 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 22 using HeuristicLab.Optimization; 25 23 -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/Interfaces/IMultiVRPMoveOperator.cs
r8052 r8086 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.Optimization;25 22 using HeuristicLab.Problems.VehicleRouting.Interfaces; 26 using HeuristicLab.Problems.VehicleRouting.Variants;27 23 28 24 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/Interfaces/IVRPMove.cs
r8052 r8086 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. … … 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.PermutationEncoding;24 23 using HeuristicLab.Optimization; 25 using HeuristicLab.Data;26 using HeuristicLab.Problems.VehicleRouting.Interfaces;27 24 28 25 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveEvaluator.cs
r8052 r8086 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; 23 using HeuristicLab.Encodings.PermutationEncoding;24 24 using HeuristicLab.Parameters; 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 26 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 27 27 using HeuristicLab.Problems.VehicleRouting.Variants; 28 using HeuristicLab.Common;29 28 30 29 namespace HeuristicLab.Problems.VehicleRouting { … … 41 40 public MultiVRPMoveEvaluator() 42 41 : base() { 43 42 Parameters.Add(new LookupParameter<IVRPMove>("VRPMove", "The generated moves.")); 44 43 } 45 44 -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveGenerator.cs
r8052 r8086 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. … … 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HeuristicLab.Collections; 26 using HeuristicLab.Common; 25 27 using HeuristicLab.Core; 28 using HeuristicLab.Data; 26 29 using HeuristicLab.Operators; 27 30 using HeuristicLab.Optimization; 28 31 using HeuristicLab.Parameters; 29 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.PluginInfrastructure;31 using HeuristicLab.Data;32 using System.Collections.Generic;33 33 using HeuristicLab.Problems.VehicleRouting.Interfaces; 34 34 using HeuristicLab.Problems.VehicleRouting.Variants; 35 using HeuristicLab.Common;36 35 37 36 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveMaker.cs
r8052 r8086 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; 23 using HeuristicLab.Data;24 using HeuristicLab.Operators;25 using HeuristicLab.Optimization;26 24 using HeuristicLab.Parameters; 27 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using System.Collections.Generic;29 26 using HeuristicLab.Problems.VehicleRouting.Variants; 30 using HeuristicLab.Common;31 27 32 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {28 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { 33 29 [Item("MultiVRPMoveMaker", "Peforms a lambda interchange moves on a given VRP encoding and updates the quality.")] 34 30 [StorableClass] … … 37 33 get { return (ILookupParameter)Parameters["VRPMove"]; } 38 34 } 39 35 40 36 [StorableConstructor] 41 37 protected MultiVRPMoveMaker(bool deserializing) : base(deserializing) { } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuChecker.cs
r8052 r8086 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; 23 24 using HeuristicLab.Data; … … 26 27 using HeuristicLab.Parameters; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using System.Collections.Generic;29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 29 30 using HeuristicLab.Problems.VehicleRouting.Variants; 30 using HeuristicLab.Common;31 using HeuristicLab.Problems.VehicleRouting.Interfaces;32 31 33 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {32 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { 34 33 [Item("MultiVRPMoveTabuChecker", "Checks if a VRP move is tabu.")] 35 34 [StorableClass] … … 66 65 set { UseAspirationCriterionParameter.Value = value; } 67 66 } 68 67 69 68 [StorableConstructor] 70 69 protected MultiVRPMoveTabuChecker(bool deserializing) : base(deserializing) { } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuMaker.cs
r8052 r8086 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; 23 24 using HeuristicLab.Data; … … 26 27 using HeuristicLab.Parameters; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using System.Collections.Generic;29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 29 30 using HeuristicLab.Problems.VehicleRouting.Variants; 30 using HeuristicLab.Common;31 using HeuristicLab.Problems.VehicleRouting.Interfaces;32 31 33 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {32 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { 34 33 [Item("MultiVRPMoveTabuMaker", "A multi VRP move tabu maker.")] 35 34 [StorableClass] … … 59 58 get { return (LookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; } 60 59 } 61 60 62 61 [StorableConstructor] 63 62 protected MultiVRPMoveTabuMaker(bool deserializing) : base(deserializing) { } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveAttribute.cs
r8052 r8086 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. -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveEvaluator.cs
r8052 r8086 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 System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 23 using HeuristicLab.Core; 24 using HeuristicLab.Data; 25 using HeuristicLab.Optimization; 26 using HeuristicLab.Parameters; 26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Core;28 using HeuristicLab.Optimization;29 using HeuristicLab.Data;30 using HeuristicLab.Parameters;31 28 using HeuristicLab.Problems.VehicleRouting.Interfaces; 32 using HeuristicLab.Common;33 29 34 30 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { … … 37 33 public abstract class VRPMoveEvaluator : VRPMoveOperator, ISingleObjectiveMoveEvaluator { 38 34 public const string MovePrefix = "Move"; 39 35 40 36 public ILookupParameter<DoubleValue> QualityParameter { 41 37 get { return (ILookupParameter<DoubleValue>)Parameters["Quality"]; } … … 82 78 public override IOperation Apply() { 83 79 EvaluateMove(); 84 80 85 81 return base.Apply(); 86 82 } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveGenerator.cs
r8052 r8086 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 System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 22 using HeuristicLab.Common; 27 23 using HeuristicLab.Core; 28 24 using HeuristicLab.Optimization; 29 using HeuristicLab.Data; 30 using HeuristicLab.Parameters; 31 using HeuristicLab.Problems.VehicleRouting.Interfaces; 32 using HeuristicLab.Common; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 33 26 34 27 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { 35 28 [Item("VRPMoveGenerator", "Generates moves for a VRP solution.")] 36 29 [StorableClass] 37 public abstract class 30 public abstract class 38 31 VRPMoveGenerator : VRPMoveOperator, IMoveGenerator { 39 32 [StorableConstructor] -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveMaker.cs
r8052 r8086 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 System;23 22 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 23 using HeuristicLab.Common; 24 using HeuristicLab.Core; 25 using HeuristicLab.Data; 26 using HeuristicLab.Optimization; 27 using HeuristicLab.Parameters; 26 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Core;28 using HeuristicLab.Optimization;29 using HeuristicLab.Data;30 using HeuristicLab.Parameters;31 29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 32 using HeuristicLab.Common;33 30 34 31 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { … … 65 62 IVRPEvaluator evaluator = ProblemInstance.SolutionEvaluator; 66 63 ICollection<IParameter> addedParameters = new List<IParameter>(); 67 64 68 65 try { 69 66 foreach (IParameter parameter in evaluator.Parameters) { 70 if (parameter is ILookupParameter 71 && parameter != evaluator.VRPToursParameter 67 if (parameter is ILookupParameter 68 && parameter != evaluator.VRPToursParameter 72 69 && parameter != evaluator.ProblemInstanceParameter) { 73 70 ILookupParameter evaluatorParameter = parameter as ILookupParameter; 74 71 75 72 string resultName = evaluatorParameter.ActualName; 76 73 if (!this.Parameters.ContainsKey(resultName)) { … … 84 81 if (!this.Parameters.ContainsKey(moveResultName)) { 85 82 ILookupParameter moveResultParameter = new LookupParameter<IItem>(moveResultName); 86 moveResultParameter.ExecutionContext = ExecutionContext; 83 moveResultParameter.ExecutionContext = ExecutionContext; 87 84 this.Parameters.Add(moveResultParameter); 88 85 addedParameters.Add(moveResultParameter); … … 96 93 } 97 94 finally { 98 foreach (IParameter parameter in addedParameters) {95 foreach (IParameter parameter in addedParameters) { 99 96 this.Parameters.Remove(parameter); 100 97 } … … 105 102 PerformMove(); 106 103 UpdateMoveEvaluation(); 107 104 108 105 return base.Apply(); 109 106 } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveOperator.cs
r8052 r8086 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 System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 23 using HeuristicLab.Core; 24 using HeuristicLab.Parameters; 26 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Core;28 26 using HeuristicLab.Problems.VehicleRouting.Interfaces; 29 using HeuristicLab.Parameters;30 using HeuristicLab.Common;31 27 32 28 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/PermutationEncoding.cs
r8052 r8086 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 System; 23 using System.Collections.Generic; 22 24 using HeuristicLab.Common; 23 25 using HeuristicLab.Core; 24 using HeuristicLab.Data;25 26 using HeuristicLab.Encodings.PermutationEncoding; 26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using System.Collections.Generic;28 using System;29 28 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 29 … … 60 59 protected PermutationEncoding(PermutationEncoding original, Cloner cloner) 61 60 : base(original, cloner) { 62 61 this.readOnly = original.readOnly; 63 62 64 65 66 67 63 if (original.ProblemInstance != null && cloner.ClonedObjectRegistered(original.ProblemInstance)) 64 this.ProblemInstance = (IVRPProblemInstance)cloner.Clone(original.ProblemInstance); 65 else 66 this.ProblemInstance = original.ProblemInstance; 68 67 } 69 68 -
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/TourEncoding.cs
r8052 r8086 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 System.Collections.Generic; 23 using System.Drawing; 22 24 using HeuristicLab.Common; 23 25 using HeuristicLab.Core; 24 using HeuristicLab.Data;25 using HeuristicLab.Encodings.PermutationEncoding;26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using System.Drawing;28 using System.Collections.Generic;29 27 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 28 … … 36 34 get { return HeuristicLab.Common.Resources.VSImageLibrary.Class; } 37 35 } 38 36 39 37 #region IVRPEncoding Members 40 38 public virtual void Repair() { … … 53 51 54 52 Tours.Remove(tour); 55 } 53 } 56 54 } 57 55 58 public virtual List<Tour> GetTours() { 59 List<Tour> result = new List<Tour>();60 foreach (Tour tour in Tours)61 result.Add(tour.Clone() as Tour);56 public virtual List<Tour> GetTours() { 57 List<Tour> result = new List<Tour>(); 58 foreach (Tour tour in Tours) 59 result.Add(tour.Clone() as Tour); 62 60 63 return result;61 return result; 64 62 } 65 63 … … 82 80 83 81 public int Cities { 84 get 85 { 82 get { 86 83 int cities = 0; 87 84 … … 114 111 protected TourEncoding(TourEncoding original, Cloner cloner) 115 112 : base(original, cloner) { 116 117 118 119 120 113 this.Tours = (ItemList<Tour>)cloner.Clone(original.Tours); 114 if (original.ProblemInstance != null && cloner.ClonedObjectRegistered(original.ProblemInstance)) 115 this.ProblemInstance = (IVRPProblemInstance)cloner.Clone(original.ProblemInstance); 116 else 117 this.ProblemInstance = original.ProblemInstance; 121 118 } 122 119
Note: See TracChangeset
for help on using the changeset viewer.