- Timestamp:
- 07/25/20 01:23:08 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/AlbaEncoding.cs
r17698 r17699 32 32 [Item("AlbaEncoding", "Represents the encoding for Alba encoded solutions.")] 33 33 [StorableType("9ff9f959-31d2-44e5-8a5e-b122220535c2")] 34 public class AlbaEncoding : Encoding <AlbaEncodedSolution>, IVRPEncoding<AlbaEncodedSolution>{34 public class AlbaEncoding : Encoding, IVRPEncoding { 35 35 36 36 [StorableConstructor] -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPEncoding.cs
r17698 r17699 22 22 using HEAL.Attic; 23 23 using HeuristicLab.Optimization; 24 using HeuristicLab.Problems.VehicleRouting.Interfaces;25 24 26 25 namespace HeuristicLab.Problems.VehicleRouting { … … 28 27 [StorableType("b6674651-cc95-48d8-a2c3-83ee9325def3")] 29 28 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 29 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs
r17698 r17699 45 45 [Creatable(CreatableAttribute.Categories.CombinatorialProblems, Priority = 110)] 46 46 [StorableType("95137523-AE3B-4638-958C-E86829D54CE3")] 47 public sealed class VehicleRoutingProblem : SingleObjectiveProblem< AlbaEncoding, AlbaEncodedSolution>, IProblemInstanceConsumer<IVRPData> {47 public sealed class VehicleRoutingProblem : SingleObjectiveProblem<IVRPEncoding, IVRPEncodedSolution>, IProblemInstanceConsumer<IVRPData> { 48 48 49 49 public static new Image StaticItemImage { … … 97 97 } 98 98 99 public override ISingleObjectiveEvaluationResult Evaluate( AlbaEncodedSolution solution, IRandom random, CancellationToken cancellationToken) {99 public override ISingleObjectiveEvaluationResult Evaluate(IVRPEncodedSolution solution, IRandom random, CancellationToken cancellationToken) { 100 100 return new SingleObjectiveEvaluationResult(ProblemInstance.Evaluate(solution).Quality); 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.