Changeset 4347 for branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3
- Timestamp:
- 08/31/10 14:24:12 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Creators/MultiVRPSolutionCreator.cs
r4346 r4347 94 94 Parameters.Add(new LookupParameter<DoubleArray>("ServiceTime", "The service time of each customer.")); 95 95 96 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IVRPCreator)) ) {96 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IVRPCreator)).OrderBy(op => op.Name)) { 97 97 if (!typeof(MultiOperator<IVRPCreator>).IsAssignableFrom(type)) 98 98 Operators.Add((IVRPCreator)Activator.CreateInstance(type), true); -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Crossovers/MultiVRPSolutionCrossover.cs
r4346 r4347 101 101 Parameters.Add(new LookupParameter<DoubleArray>("ServiceTime", "The service time of each customer.")); 102 102 103 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IVRPCrossover)) ) {103 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IVRPCrossover)).OrderBy(op => op.Name)) { 104 104 if (!typeof(MultiOperator<IVRPCrossover>).IsAssignableFrom(type)) 105 105 Operators.Add((IVRPCrossover)Activator.CreateInstance(type), true); -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Manipulators/MultiVRPSolutionManipulator.cs
r4346 r4347 94 94 Parameters.Add(new LookupParameter<DoubleArray>("ServiceTime", "The service time of each customer.")); 95 95 96 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IVRPManipulator))) { 97 if (!typeof(MultiOperator<IVRPManipulator>).IsAssignableFrom(type)) 98 Operators.Add((IVRPManipulator)Activator.CreateInstance(type), true); 96 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IVRPManipulator)).OrderBy(op => op.Name)) { 97 if (!typeof(MultiOperator<IVRPManipulator>).IsAssignableFrom(type)) { 98 IVRPManipulator op = (IVRPManipulator)Activator.CreateInstance(type); 99 bool operatorChecked = true; 100 if(op is HeuristicLab.Problems.VehicleRouting.Encodings.Potvin.PotvinLocalSearchManipulator || 101 op is HeuristicLab.Problems.VehicleRouting.Encodings.Prins.PrinsLSManipulator) 102 operatorChecked = false; 103 Operators.Add(op, operatorChecked); 104 } 99 105 } 100 106 } -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveGenerator.cs
r4205 r4347 118 118 Parameters.Add(new LookupParameter<IVRPMove>("VRPMove", "The generated moves.")); 119 119 120 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IMultiVRPMoveGenerator)) ) {120 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IMultiVRPMoveGenerator)).OrderBy(op => op.Name)) { 121 121 if (!typeof(MultiOperator<IMultiVRPMoveGenerator>).IsAssignableFrom(type)) 122 122 Operators.Add((IMultiVRPMoveGenerator)Activator.CreateInstance(type), true); -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs
r4317 r4347 320 320 operators.Add(new BestAverageWorstVRPToursAnalyzer()); 321 321 ParameterizeAnalyzer(); 322 operators.AddRange(ApplicationManager.Manager.GetInstances<IVRPOperator>().Cast<IOperator>() );322 operators.AddRange(ApplicationManager.Manager.GetInstances<IVRPOperator>().Cast<IOperator>().OrderBy(op => op.Name)); 323 323 ParameterizeOperators(); 324 324 UpdateMoveEvaluators();
Note: See TracChangeset
for help on using the changeset viewer.