vrpRouting  0.3
solution_rt.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: solution_rt.h
3 
4 Copyright (c) 2017 Celia Virginia Vergara Castillo
6 
7 ------
8 
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 
23  ********************************************************************PGR-GNU*/
26 #ifndef INCLUDE_C_TYPES_SOLUTION_RT_H_
27 #define INCLUDE_C_TYPES_SOLUTION_RT_H_
28 #pragma once
29 
30 /* for int64_t */
31 #ifdef __cplusplus
32 # include <cstdint>
33 #else
34 # include <stdint.h>
35 #endif
36 
56 struct Solution_rt {
58  int64_t vehicle_id;
59  int stop_seq;
60  int64_t order_id;
61  int64_t stop_id;
62  int stop_type;
63  int64_t cargo;
64  int64_t travelTime;
65  int64_t arrivalTime;
66  int64_t waitDuration;
67  int64_t operationTime;
68  int64_t serviceDuration;
69  int64_t departureTime;
70  int cvTot;
71  int twvTot;
72 };
73 
74 /*************************************************************************/
75 
76 #endif // INCLUDE_C_TYPES_SOLUTION_RT_H_
Solution_rt::cargo
int64_t cargo
Kind of stop.
Definition: solution_rt.h:63
Solution_rt::vehicle_seq
int vehicle_seq
Definition: solution_rt.h:57
Solution_rt::travelTime
int64_t travelTime
Cargo when leaving the stop.
Definition: solution_rt.h:64
Solution_rt::twvTot
int twvTot
Total Capacity Violations.
Definition: solution_rt.h:71
Solution_rt::stop_seq
int stop_seq
Vehicle's identifier.
Definition: solution_rt.h:59
Solution_rt::serviceDuration
int64_t serviceDuration
Time at which the pickup or delivery takes place.
Definition: solution_rt.h:68
Solution_rt::arrivalTime
int64_t arrivalTime
Travel time from previous stop.
Definition: solution_rt.h:65
Solution_rt::cvTot
int cvTot
Vehicle's departure time from the stop.
Definition: solution_rt.h:70
Solution_rt::order_id
int64_t order_id
Stop sequence of vehicle.
Definition: solution_rt.h:60
Solution_rt
Solution schedule when twv & cw are hard restrictions.
Definition: solution_rt.h:56
Solution_rt::vehicle_id
int64_t vehicle_id
Sequence for ordering for a single vehicle.
Definition: solution_rt.h:58
Solution_rt::departureTime
int64_t departureTime
Service time of the stop.
Definition: solution_rt.h:69
Solution_rt::waitDuration
int64_t waitDuration
Vehicle's arrival time.
Definition: solution_rt.h:66
Solution_rt::stop_type
int stop_type
Node identifier of the stop.
Definition: solution_rt.h:62
Solution_rt::stop_id
int64_t stop_id
Served order's identifier.
Definition: solution_rt.h:61
Solution_rt::operationTime
int64_t operationTime
Vehicle's wait time before stop opens.
Definition: solution_rt.h:67