Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/BestSolution/PickupAndDelivery
- Timestamp:
- 07/24/20 00:58:42 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/BestSolution/PickupAndDelivery/BestPickupAndDeliveryVRPSolutionAnalyzer.cs
r17226 r17698 42 42 get { return (ILookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; } 43 43 } 44 public ScopeTreeLookupParameter<IVRPEncod ing> VRPToursParameter {45 get { return (ScopeTreeLookupParameter<IVRPEncod ing>)Parameters["VRPTours"]; }44 public ScopeTreeLookupParameter<IVRPEncodedSolution> VRPToursParameter { 45 get { return (ScopeTreeLookupParameter<IVRPEncodedSolution>)Parameters["VRPTours"]; } 46 46 } 47 47 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { … … 70 70 : base() { 71 71 Parameters.Add(new LookupParameter<IVRPProblemInstance>("ProblemInstance", "The problem instance.")); 72 Parameters.Add(new ScopeTreeLookupParameter<IVRPEncod ing>("VRPTours", "The VRP tours which should be evaluated."));72 Parameters.Add(new ScopeTreeLookupParameter<IVRPEncodedSolution>("VRPTours", "The VRP tours which should be evaluated.")); 73 73 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the VRP solutions which should be analyzed.")); 74 74 … … 89 89 public override IOperation Apply() { 90 90 IVRPProblemInstance problemInstance = ProblemInstanceParameter.ActualValue; 91 ItemArray<IVRPEncod ing> solutions = VRPToursParameter.ActualValue;91 ItemArray<IVRPEncodedSolution> solutions = VRPToursParameter.ActualValue; 92 92 ResultCollection results = ResultsParameter.ActualValue; 93 93 … … 97 97 int i = qualities.Select((x, index) => new { index, x.Value }).OrderBy(x => x.Value).First().index; 98 98 99 IVRPEncod ing best = solutions[i] as IVRPEncoding;99 IVRPEncodedSolution best = solutions[i] as IVRPEncodedSolution; 100 100 VRPSolution solution = BestSolutionParameter.ActualValue; 101 101 if (solution != null) {
Note: See TracChangeset
for help on using the changeset viewer.