Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2521_ProblemRefactoring/HeuristicLab.Problems.Instances/3.3/Types/VRP/VRPData.cs @ 17529

Last change on this file since 17529 was 17529, checked in by abeham, 4 years ago

#2521: some fixes and reusing handling of distance measure as defined in TSP

File size: 2.0 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22
23namespace HeuristicLab.Problems.Instances {
24  /// <summary>
25  /// Describes instances of the Vehicle Routing Problem (VRP).
26  /// </summary>
27  public class VRPData : TSPData, IVRPData {
28    /// <summary>
29    /// Optional! The maximum number of vehicles that can be used.
30    /// </summary>
31    /// <remarks>
32    /// If no number is given, but a maximum is required, it can be assumed that
33    /// the maximum number of vehicles is equal to the number of customers as
34    /// there cannot be more than one vehicle per customer.
35    /// </remarks>
36    public double? MaximumVehicles { get; set; }
37    /// <summary>
38    /// The demand vector that specifies how many goods need to be delivered.
39    /// The vector has to include the depot, but with a demand of 0.
40    /// </summary>
41    public double[] Demands { get; set; }
42
43    /// <summary>
44    /// Optional! The best-known solution as a list of tours in path-encoding.
45    /// </summary>
46    public new int[][] BestKnownTour { get; set; }
47    /// <summary>
48    /// Optional! Specifies the used vehicle for a given tour.
49    /// </summary>
50    public int[] BestKnownTourVehicleAssignment { get; set; }
51  }
52}
Note: See TracBrowser for help on using the repository browser.