Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces
- Timestamp:
- 07/24/20 00:58:42 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPCreator.cs
r17226 r17698 27 27 [StorableType("36C4F904-7B59-4C09-81C4-BC07D9ABC496")] 28 28 public interface IVRPCreator : IVRPOperator, ISolutionCreator { 29 ILookupParameter<IVRPEncod ing> VRPToursParameter { get; }29 ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; } 30 30 } 31 31 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPCrossover.cs
r17226 r17698 27 27 [StorableType("FFAE16E2-265C-464E-9903-24154F6B0628")] 28 28 public interface IVRPCrossover : IVRPOperator, ICrossover { 29 ILookupParameter<ItemArray<IVRPEncod ing>> ParentsParameter { get; }30 ILookupParameter<IVRPEncod ing> ChildParameter { get; }29 ILookupParameter<ItemArray<IVRPEncodedSolution>> ParentsParameter { get; } 30 ILookupParameter<IVRPEncodedSolution> ChildParameter { get; } 31 31 } 32 32 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPEncoding.cs
r17226 r17698 20 20 #endregion 21 21 22 using System.Collections.Generic;23 using HeuristicLab.Core;24 22 using HEAL.Attic; 23 using HeuristicLab.Optimization; 24 using HeuristicLab.Problems.VehicleRouting.Interfaces; 25 25 26 namespace HeuristicLab.Problems.VehicleRouting .Interfaces{27 [StorableType("A8B95552-3A3D-43B3-95C3-B04602AEACF5")] 28 public interface IVRPEncoding : IItem {29 List<Tour> GetTours();30 int GetTourIndex(Tour tour); 31 int GetVehicleAssignment(int tour);32 }26 namespace HeuristicLab.Problems.VehicleRouting { 27 28 [StorableType("b6674651-cc95-48d8-a2c3-83ee9325def3")] 29 public interface IVRPEncoding : IEncoding { } 30 31 [StorableType("7d010ab3-2e01-4383-bb6c-7c47ef9d803f")] 32 public interface IVRPEncoding<T> : IVRPEncoding, IEncoding<T> where T : class, IVRPEncodedSolution { } 33 33 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPEvaluator.cs
r17226 r17698 28 28 [StorableType("C3423687-3CBE-41E4-9227-FF4F1D6912E1")] 29 29 public interface IVRPEvaluator : IVRPOperator, ISingleObjectiveEvaluator { 30 ILookupParameter<IVRPEncod ing> VRPToursParameter { get; }30 ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; } 31 31 32 VRPEvaluation Evaluate(IVRPProblemInstance instance, IVRPEncod ingsolution);33 VRPEvaluation EvaluateTour(IVRPProblemInstance instance, Tour tour, IVRPEncod ingsolution);32 VRPEvaluation Evaluate(IVRPProblemInstance instance, IVRPEncodedSolution solution); 33 VRPEvaluation EvaluateTour(IVRPProblemInstance instance, Tour tour, IVRPEncodedSolution solution); 34 34 bool Feasible(VRPEvaluation evaluation); 35 double GetInsertionCosts(IVRPProblemInstance instance, IVRPEncod ingsolution, VRPEvaluation eval, int customer, int tour, int index, out bool feasible);35 double GetInsertionCosts(IVRPProblemInstance instance, IVRPEncodedSolution solution, VRPEvaluation eval, int customer, int tour, int index, out bool feasible); 36 36 } 37 37 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPManipulator.cs
r17226 r17698 27 27 [StorableType("AC249F6E-B3A0-49C2-A582-811C132B4DAE")] 28 28 public interface IVRPManipulator : IVRPOperator, IManipulator { 29 ILookupParameter<IVRPEncod ing> VRPToursParameter { get; }29 ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; } 30 30 } 31 31 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPMoveOperator.cs
r17226 r17698 27 27 [StorableType("9425CBF4-8F21-43FC-9AAB-52E263B2BB12")] 28 28 public interface IVRPMoveOperator : IVRPOperator, IMoveOperator { 29 ILookupParameter<IVRPEncod ing> VRPToursParameter { get; }29 ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; } 30 30 ILookupParameter VRPMoveParameter { get; } 31 31 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPMultiNeighborhoodShakingOperator.cs
r17226 r17698 27 27 [StorableType("48732EFD-AB16-4C96-A720-FB6CAEA0133D")] 28 28 public interface IVRPMultiNeighborhoodShakingOperator : IMultiNeighborhoodShakingOperator, IVRPOperator { 29 ILookupParameter<IVRPEncod ing> VRPToursParameter { get; }29 ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; } 30 30 } 31 31 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPProblemInstance.cs
r17226 r17698 48 48 double[] GetCoordinates(int city); 49 49 double GetDemand(int city); 50 double GetDistance(int start, int end, IVRPEncod ingsolution);51 double GetInsertionDistance(int start, int customer, int end, IVRPEncod ingsolution, out double startDistance, out double endDistance);52 bool Feasible(IVRPEncod ingsolution);53 bool TourFeasible(Tour tour, IVRPEncod ingsolution);54 VRPEvaluation Evaluate(IVRPEncod ingsolution);55 VRPEvaluation EvaluateTour(Tour tour, IVRPEncod ingsolution);50 double GetDistance(int start, int end, IVRPEncodedSolution solution); 51 double GetInsertionDistance(int start, int customer, int end, IVRPEncodedSolution solution, out double startDistance, out double endDistance); 52 bool Feasible(IVRPEncodedSolution solution); 53 bool TourFeasible(Tour tour, IVRPEncodedSolution solution); 54 VRPEvaluation Evaluate(IVRPEncodedSolution solution); 55 VRPEvaluation EvaluateTour(Tour tour, IVRPEncodedSolution solution); 56 56 bool Feasible(VRPEvaluation eval); 57 double GetInsertionCosts(VRPEvaluation eval, IVRPEncod ingsolution, int customer, int tour, int index, out bool feasible);57 double GetInsertionCosts(VRPEvaluation eval, IVRPEncodedSolution solution, int customer, int tour, int index, out bool feasible); 58 58 } 59 59 }
Note: See TracChangeset
for help on using the changeset viewer.