Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves
- Timestamp:
- 07/24/20 00:58:42 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveGenerator.cs
r17226 r17698 49 49 } 50 50 51 public ILookupParameter<IVRPEncod ing> VRPToursParameter {52 get { return (ILookupParameter<IVRPEncod ing>)Parameters["VRPTours"]; }51 public ILookupParameter<IVRPEncodedSolution> VRPToursParameter { 52 get { return (ILookupParameter<IVRPEncodedSolution>)Parameters["VRPTours"]; } 53 53 } 54 54 … … 86 86 Parameters.Add(new LookupParameter<IVRPProblemInstance>("ProblemInstance", "The VRP problem instance")); 87 87 88 Parameters.Add(new LookupParameter<IVRPEncod ing>("VRPTours", "The VRP tours."));88 Parameters.Add(new LookupParameter<IVRPEncodedSolution>("VRPTours", "The VRP tours.")); 89 89 Parameters.Add(new LookupParameter<IVRPMove>("VRPMove", "The generated moves.")); 90 90 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuChecker.cs
r17226 r17698 38 38 } 39 39 40 public ILookupParameter<IVRPEncod ing> VRPToursParameter {41 get { return (ILookupParameter<IVRPEncod ing>)Parameters["VRPTours"]; }40 public ILookupParameter<IVRPEncodedSolution> VRPToursParameter { 41 get { return (ILookupParameter<IVRPEncodedSolution>)Parameters["VRPTours"]; } 42 42 } 43 43 public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter { … … 72 72 : base() { 73 73 Parameters.Add(new LookupParameter<IVRPMove>("VRPMove", "The move.")); 74 Parameters.Add(new LookupParameter<IVRPEncod ing>("VRPTours", "The VRP tours considered in the move."));74 Parameters.Add(new LookupParameter<IVRPEncodedSolution>("VRPTours", "The VRP tours considered in the move.")); 75 75 Parameters.Add(new LookupParameter<IVRPProblemInstance>("ProblemInstance", "The VRP problem instance")); 76 76 -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuMaker.cs
r17226 r17698 52 52 get { return (IValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 53 53 } 54 public ILookupParameter<IVRPEncod ing> VRPToursParameter {55 get { return (ILookupParameter<IVRPEncod ing>)Parameters["VRPTours"]; }54 public ILookupParameter<IVRPEncodedSolution> VRPToursParameter { 55 get { return (ILookupParameter<IVRPEncodedSolution>)Parameters["VRPTours"]; } 56 56 } 57 57 public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter { … … 71 71 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, else if it is a minimization problem.")); 72 72 73 Parameters.Add(new LookupParameter<IVRPEncod ing>("VRPTours", "The VRP tours considered in the move."));73 Parameters.Add(new LookupParameter<IVRPEncodedSolution>("VRPTours", "The VRP tours considered in the move.")); 74 74 Parameters.Add(new LookupParameter<IVRPProblemInstance>("ProblemInstance", "The VRP problem instance")); 75 75 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveEvaluator.cs
r17226 r17698 59 59 60 60 //helper method to evaluate an updated individual 61 protected void UpdateEvaluation(IVRPEncod ingupdatedTours) {61 protected void UpdateEvaluation(IVRPEncodedSolution updatedTours) { 62 62 IVRPEvaluator evaluator = ProblemInstance.MoveEvaluator; 63 63 -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveOperator.cs
r17226 r17698 30 30 [StorableType("B2A37CCE-3EF6-4648-8A9B-2BCBD4EC93F1")] 31 31 public abstract class VRPMoveOperator : VRPOperator, IVRPMoveOperator { 32 public ILookupParameter<IVRPEncod ing> VRPToursParameter {33 get { return (ILookupParameter<IVRPEncod ing>)Parameters["VRPTours"]; }32 public ILookupParameter<IVRPEncodedSolution> VRPToursParameter { 33 get { return (ILookupParameter<IVRPEncodedSolution>)Parameters["VRPTours"]; } 34 34 } 35 35 … … 40 40 41 41 public VRPMoveOperator() { 42 Parameters.Add(new LookupParameter<IVRPEncod ing>("VRPTours", "The VRP tours considered in the move."));42 Parameters.Add(new LookupParameter<IVRPEncodedSolution>("VRPTours", "The VRP tours considered in the move.")); 43 43 } 44 44
Note: See TracChangeset
for help on using the changeset viewer.