![]() |
vrpRouting
0.3
|
#include "c_types/typedefs.h"
Go to the source code of this file.
Functions | |
void | do_vrp_vroom (Vroom_job_t *jobs, size_t total_jobs, Vroom_time_window_t *jobs_tws, size_t total_jobs_tws, Vroom_shipment_t *shipments, size_t total_shipments, Vroom_time_window_t *shipments_tws, size_t total_shipments_tws, Vroom_vehicle_t *vehicles, size_t total_vehicles, Vroom_break_t *breaks, size_t total_breaks, Vroom_time_window_t *breaks_tws, size_t total_breaks_tws, Vroom_matrix_t *matrix_cells_arr, size_t total_cells, int32_t exploration_level, int32_t timeout, int32_t loading_time, Vroom_rt **return_tuples, size_t *return_count, char **log_msg, char **notice_msg, char **err_msg) |
Performs exception handling and converts the results to postgres. More... | |
void do_vrp_vroom | ( | Vroom_job_t * | jobs, |
size_t | total_jobs, | ||
Vroom_time_window_t * | jobs_tws, | ||
size_t | total_jobs_tws, | ||
Vroom_shipment_t * | shipments, | ||
size_t | total_shipments, | ||
Vroom_time_window_t * | shipments_tws, | ||
size_t | total_shipments_tws, | ||
Vroom_vehicle_t * | vehicles, | ||
size_t | total_vehicles, | ||
Vroom_break_t * | breaks, | ||
size_t | total_breaks, | ||
Vroom_time_window_t * | breaks_tws, | ||
size_t | total_breaks_tws, | ||
Vroom_matrix_t * | matrix_rows, | ||
size_t | total_matrix_rows, | ||
int32_t | exploration_level, | ||
int32_t | timeout, | ||
int32_t | loading_time, | ||
Vroom_rt ** | return_tuples, | ||
size_t * | return_count, | ||
char ** | log_msg, | ||
char ** | notice_msg, | ||
char ** | err_msg | ||
) |
Performs exception handling and converts the results to postgres.
It converts the C types to the C++ types, and passes these variables to the function vrp_vroom
which calls the main function defined in the C++ Header file. It also does exception handling.
jobs | Pointer to the array of jobs |
total_jobs | The total number of jobs |
jobs_tws | Pointer to the array of jobs time windows |
total_jobs_tws | The total number of jobs time windows |
shipments | Pointer to the array of shipments |
total_shipments | The total number of shipments |
shipments_tws | Pointer to the array of shipments time windows |
total_shipments_tws | The total number of shipments time windows |
vehicles | Pointer to the array of vehicles |
total_vehicles | The total number of total vehicles |
breaks | Pointer to the array of breaks |
total_breaks | The total number of total breaks |
matrix_rows | Pointer to the array of matrix rows |
total_matrix_rows | The total number of matrix rows |
exploration_level | Exploration level to use while solving. |
timeout | Timeout value to stop the solving process (seconds). |
loading_timeout | Additional time spent in loading the data from SQL Query (seconds). |
result_tuples | The rows in the result |
result_count | The count of rows in the result |
log_msg | Stores the log message |
notice_msg | Stores the notice message |
err_msg | Stores the error message |
Definition at line 84 of file vroom_driver.cpp.
References vrprouting::Vrp_vroom_problem::add_jobs(), vrprouting::Vrp_vroom_problem::add_matrix(), vrprouting::Vrp_vroom_problem::add_shipments(), vrprouting::Vrp_vroom_problem::add_vehicles(), Vroom_shipment_t::d_location_id, Vroom_vehicle_t::end_id, vrprouting::base::Base_Matrix::has_no_infinity(), Vroom_job_t::location_id, Vroom_shipment_t::p_location_id, pgassert, pgr_alloc(), pgr_free(), pgr_msg(), vrprouting::base::Base_Matrix::size(), vrprouting::Vrp_vroom_problem::solve(), Vroom_vehicle_t::speed_factor, Vroom_vehicle_t::start_id, and AssertFailedException::what().
Referenced by process().