Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/24/20 00:58:42 (4 years ago)
Author:
abeham
Message:

#2521: working on VRP (WIP)

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  
    2727  [StorableType("36C4F904-7B59-4C09-81C4-BC07D9ABC496")]
    2828  public interface IVRPCreator : IVRPOperator, ISolutionCreator {
    29     ILookupParameter<IVRPEncoding> VRPToursParameter { get; }
     29    ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; }
    3030  }
    3131}
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPCrossover.cs

    r17226 r17698  
    2727  [StorableType("FFAE16E2-265C-464E-9903-24154F6B0628")]
    2828  public interface IVRPCrossover : IVRPOperator, ICrossover {
    29     ILookupParameter<ItemArray<IVRPEncoding>> ParentsParameter { get; }
    30     ILookupParameter<IVRPEncoding> ChildParameter { get; }
     29    ILookupParameter<ItemArray<IVRPEncodedSolution>> ParentsParameter { get; }
     30    ILookupParameter<IVRPEncodedSolution> ChildParameter { get; }
    3131  }
    3232}
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPEncoding.cs

    r17226 r17698  
    2020#endregion
    2121
    22 using System.Collections.Generic;
    23 using HeuristicLab.Core;
    2422using HEAL.Attic;
     23using HeuristicLab.Optimization;
     24using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2525
    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   }
     26namespace 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 { }
    3333}
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPEvaluator.cs

    r17226 r17698  
    2828  [StorableType("C3423687-3CBE-41E4-9227-FF4F1D6912E1")]
    2929  public interface IVRPEvaluator : IVRPOperator, ISingleObjectiveEvaluator {
    30     ILookupParameter<IVRPEncoding> VRPToursParameter { get; }
     30    ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; }
    3131
    32     VRPEvaluation Evaluate(IVRPProblemInstance instance, IVRPEncoding solution);
    33     VRPEvaluation EvaluateTour(IVRPProblemInstance instance, Tour tour, IVRPEncoding solution);
     32    VRPEvaluation Evaluate(IVRPProblemInstance instance, IVRPEncodedSolution solution);
     33    VRPEvaluation EvaluateTour(IVRPProblemInstance instance, Tour tour, IVRPEncodedSolution solution);
    3434    bool Feasible(VRPEvaluation evaluation);
    35     double GetInsertionCosts(IVRPProblemInstance instance, IVRPEncoding solution, 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);
    3636  }
    3737}
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPManipulator.cs

    r17226 r17698  
    2727  [StorableType("AC249F6E-B3A0-49C2-A582-811C132B4DAE")]
    2828  public interface IVRPManipulator : IVRPOperator, IManipulator {
    29     ILookupParameter<IVRPEncoding> VRPToursParameter { get; }
     29    ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; }
    3030  }
    3131}
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPMoveOperator.cs

    r17226 r17698  
    2727  [StorableType("9425CBF4-8F21-43FC-9AAB-52E263B2BB12")]
    2828  public interface IVRPMoveOperator : IVRPOperator, IMoveOperator {
    29     ILookupParameter<IVRPEncoding> VRPToursParameter { get; }
     29    ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; }
    3030    ILookupParameter VRPMoveParameter { get; }
    3131  }
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPMultiNeighborhoodShakingOperator.cs

    r17226 r17698  
    2727  [StorableType("48732EFD-AB16-4C96-A720-FB6CAEA0133D")]
    2828  public interface IVRPMultiNeighborhoodShakingOperator : IMultiNeighborhoodShakingOperator, IVRPOperator {
    29     ILookupParameter<IVRPEncoding> VRPToursParameter { get; }
     29    ILookupParameter<IVRPEncodedSolution> VRPToursParameter { get; }
    3030  }
    3131}
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPProblemInstance.cs

    r17226 r17698  
    4848    double[] GetCoordinates(int city);
    4949    double GetDemand(int city);
    50     double GetDistance(int start, int end, IVRPEncoding solution);
    51     double GetInsertionDistance(int start, int customer, int end, IVRPEncoding solution, out double startDistance, out double endDistance);
    52     bool Feasible(IVRPEncoding solution);
    53     bool TourFeasible(Tour tour, IVRPEncoding solution);
    54     VRPEvaluation Evaluate(IVRPEncoding solution);
    55     VRPEvaluation EvaluateTour(Tour tour, IVRPEncoding solution);
     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);
    5656    bool Feasible(VRPEvaluation eval);
    57     double GetInsertionCosts(VRPEvaluation eval, IVRPEncoding solution, 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);
    5858  }
    5959}
Note: See TracChangeset for help on using the changeset viewer.