vrpRouting  0.3
pgr_pickDeliver/pickDeliver_driver.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: pickDeliver_driver.h
3 
4 Copyright (c) 2015 pgRouting developers
6 
7 Function's developer:
8 Copyright (c) 2015 Celia Virginia Vergara Castillo
9 Mail:
10 
11 ------
12 
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17 
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22 
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 
27  ********************************************************************PGR-GNU*/
28 
31 #ifndef INCLUDE_DRIVERS_PGR_PICKDELIVER_PICKDELIVER_DRIVER_H_
32 #define INCLUDE_DRIVERS_PGR_PICKDELIVER_PICKDELIVER_DRIVER_H_
33 #pragma once
34 
35 /* for size-t */
36 #ifdef __cplusplus
37 # include <cstddef>
38 #else
39 # include <stddef.h>
40 #endif
41 
42 #include "c_types/vehicle_t.h"
43 #include "c_types/matrix_cell_t.h"
44 
46 typedef struct Solution_rt Solution_rt;
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
52  /*********************************************************
53  orders_sql TEXT,
54  max_vehicles INTEGER,
55  capacity FLOAT,
56  max_cycles INTEGER,
57  ********************************************************/
58  void do_pgr_pickDeliver(
59  PickDeliveryOrders_t *pd_orders_arr, size_t total_pd_orders,
60  Vehicle_t *vehicles_arr, size_t total_vehicles,
61  Matrix_cell_t *matrix_cells_arr, size_t total_cells,
62 
63  double factor,
64  int max_cycles,
65  int initial_solution_id,
66 
67  Solution_rt **return_tuples,
68  size_t *return_count,
69 
70  char **log_msg,
71  char **notice_msg,
72  char **err_msg);
73 
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif // INCLUDE_DRIVERS_PGR_PICKDELIVER_PICKDELIVER_DRIVER_H_
vehicle_t.h
PickDeliveryOrders_t
order's attributes
Definition: pickDeliveryOrders_t.h:56
do_pgr_pickDeliver
void do_pgr_pickDeliver(PickDeliveryOrders_t *pd_orders_arr, size_t total_pd_orders, Vehicle_t *vehicles_arr, size_t total_vehicles, Matrix_cell_t *matrix_cells_arr, size_t total_cells, double factor, int max_cycles, int initial_solution_id, Solution_rt **return_tuples, size_t *return_count, char **log_msg, char **notice_msg, char **err_msg)
Vehicle_t
vehicles's attributes
Definition: vehicle_t.h:50
Solution_rt
Solution schedule when twv & cw are hard restrictions.
Definition: solution_rt.h:56
Matrix_cell_t
traveling costs
Definition: matrix_cell_t.h:41
matrix_cell_t.h