Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/29/11 15:51:56 (13 years ago)
Author:
svonolfe
Message:

Added support for multi depot CVRP instances (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPEncoding.cs

    r4363 r6851  
    2929  public interface IVRPEncoding: IItem {
    3030    List<Tour> GetTours();
     31    int GetTourIndex(Tour tour);
     32    int GetVehicleAssignment(int tour);
    3133  }
    3234}
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPEvaluator.cs

    r6838 r6851  
    3535    VRPEvaluation EvaluateTour(IVRPProblemInstance instance, Tour tour, IVRPEncoding solution);
    3636    bool Feasible(VRPEvaluation evaluation);
    37     double GetInsertionCosts(IVRPProblemInstance instance, VRPEvaluation eval, int customer, int tour, int index, out bool feasible);
     37    double GetInsertionCosts(IVRPProblemInstance instance, IVRPEncoding solution, VRPEvaluation eval, int customer, int tour, int index, out bool feasible);
    3838  }
    3939}
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Interfaces/IVRPProblemInstance.cs

    r6838 r6851  
    4848    DoubleValue DistanceFactor { get; }
    4949
    50     double GetDistance(int start, int end);
     50    double[] GetCoordinates(int city);
     51    double GetDemand(int city);
     52    double GetDistance(int start, int end, IVRPEncoding solution);
     53    double GetInsertionDistance(int start, int customer, int end, IVRPEncoding solution);
    5154    bool Feasible(IVRPEncoding solution);
    5255    bool TourFeasible(Tour tour, IVRPEncoding solution);
     
    5457    VRPEvaluation EvaluateTour(Tour tour, IVRPEncoding solution);
    5558    bool Feasible(VRPEvaluation eval);
    56     double GetInsertionCosts(VRPEvaluation eval, int customer, int tour, int index, out bool feasible);
     59    double GetInsertionCosts(VRPEvaluation eval, IVRPEncoding solution, int customer, int tour, int index, out bool feasible);
    5760  }
    5861}
Note: See TracChangeset for help on using the changeset viewer.