Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPTWEvaluation.cs @ 14929

Last change on this file since 14929 was 14929, checked in by gkronber, 7 years ago

#2520 fixed unit tests for new persistence: loading & storing all samples

File size: 2.2 KB
Line 
1using HeuristicLab.Persistence;
2#region License Information
3/* HeuristicLab
4 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
5 *
6 * This file is part of HeuristicLab.
7 *
8 * HeuristicLab is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * HeuristicLab is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
20 */
21#endregion
22
23
24namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
25  [StorableType("3b2672a8-0ff5-4c95-b39e-829aaa09651b")]
26  public class CVRPTWInsertionInfo : CVRPInsertionInfo {
27    private double tourStartTime;
28
29    public double TourStartTime {
30      get { return tourStartTime; }
31    }
32
33    private double arrivalTime;
34
35    public double ArrivalTime {
36      get { return arrivalTime; }
37    }
38
39    private double leaveTime;
40
41    public double LeaveTime {
42      get { return leaveTime; }
43    }
44
45    private double spareTime;
46
47    public double SpareTime {
48      get { return spareTime; }
49    }
50
51    private double waitingTime;
52
53    public double WaitingTime {
54      get { return waitingTime; }
55    }
56
57    public CVRPTWInsertionInfo(int start, int end, double spareCapacity, double tourStartTime, double arrivalTime, double leaveTime, double spareTime, double waitingTime)
58      : base(start, end, spareCapacity) {
59      this.tourStartTime = tourStartTime;
60      this.arrivalTime = arrivalTime;
61      this.leaveTime = leaveTime;
62      this.spareTime = spareTime;
63      this.waitingTime = waitingTime;
64    }
65  }
66
67  [StorableType("37fee5c4-1752-48b5-b21d-d5ea15f7757f")]
68  public class CVRPTWEvaluation : CVRPEvaluation {
69    public double Tardiness { get; set; }
70    public double TravelTime { get; set; }
71  }
72}
Note: See TracBrowser for help on using the repository browser.