- Timestamp:
- 05/21/12 14:32:32 (13 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Manipulators/MultiVRPSolutionManipulator.cs
r6716 r7855 84 84 foreach (IOperator op in operators) { 85 85 if (op is IVRPManipulator && !(op is MultiVRPSolutionManipulator)) { 86 Operators.Add(op.Clone() as IVRPManipulator, true);86 Operators.Add(op.Clone() as IVRPManipulator, !(op is IVRPLocalSearchManipulator)); 87 87 } 88 88 } -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/PermutationEncoding.cs
r6851 r7855 36 36 public abstract List<Tour> GetTours(); 37 37 38 public int GetTourIndex(Tour tour) {38 public virtual int GetTourIndex(Tour tour) { 39 39 int index = -1; 40 40 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/ShakingOperators/VehicleRoutingShakingOperator.cs
r6093 r7855 71 71 72 72 foreach (IVRPManipulator shaker in ApplicationManager.Manager.GetInstances<IVRPManipulator>().OrderBy(x => x.Name)) 73 if (!(shaker is MultiVRPSolutionManipulator)) Operators.Add(shaker );73 if (!(shaker is MultiVRPSolutionManipulator)) Operators.Add(shaker, !(shaker is IVRPLocalSearchManipulator)); 74 74 } 75 75 -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Manipulators/PotvinLocalSearchManipulator.cs
r6838 r7855 27 27 using System.Collections.Generic; 28 28 using HeuristicLab.Common; 29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 29 30 30 31 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin { 31 32 [Item("PotvinLocalSearchManipulator", "The LSM operator which manipulates a VRP representation. It is implemented as described in Potvin, J.-Y. and Bengio, S. (1996). The Vehicle Routing Problem with Time Windows - Part II: Genetic Search. INFORMS Journal of Computing, 8:165–172.")] 32 33 [StorableClass] 33 public sealed class PotvinLocalSearchManipulator : PotvinManipulator {34 public sealed class PotvinLocalSearchManipulator : PotvinManipulator, IVRPLocalSearchManipulator { 34 35 public IValueParameter<IntValue> Iterations { 35 36 get { return (IValueParameter<IntValue>)Parameters["Iterations"]; } -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Prins/Manipulators/PrinsLSManipulator.cs
r6607 r7855 27 27 using System.Collections.Generic; 28 28 using HeuristicLab.Common; 29 using HeuristicLab.Problems.VehicleRouting.Interfaces; 29 30 30 31 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Prins { 31 32 [Item("PrinsLSManipulator", "An operator which manipulates a VRP representation by using the Prins local search. It is implemented as described in Prins, C. (2004). A simple and effective evolutionary algorithm for the vehicle routing problem. Computers & Operations Research, 12:1985-2002.")] 32 33 [StorableClass] 33 public abstract class PrinsLSManipulator : PrinsManipulator {34 public abstract class PrinsLSManipulator : PrinsManipulator, IVRPLocalSearchManipulator { 34 35 public IValueParameter<IntValue> Iterations { 35 36 get { return (IValueParameter<IntValue>)Parameters["Iterations"]; }
Note: See TracChangeset
for help on using the changeset viewer.