PGROUTING  3.2
euclideanTSP_driver.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2  * File: tsp_driver.h
3  *
4  * Generated with Template by:
5  * Copyright (c) 2015 pgRouting developers
6  * Mail: [email protected]
7  *
8  * Function's developer:
9  * Copyright (c) 2015 Celia Virginia Vergara Castillo
10  * Mail: [email protected]
11  *
12  * ------
13 
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation; either version 2 of the License, or
17 (at your option) any later version.
18 
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23 
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 
28  ********************************************************************PGR-GNU*/
29 
30 #ifndef INCLUDE_DRIVERS_TSP_EUCLIDEANTSP_DRIVER_H_
31 #define INCLUDE_DRIVERS_TSP_EUCLIDEANTSP_DRIVER_H_
32 #pragma once
33 
34 /* for size-t */
35 #ifdef __cplusplus
36 # include <cstddef>
37 #else
38 # include <stddef.h>
39 #endif
40 
41 #include "c_types/coordinate_t.h"
43 
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 void
51  Coordinate_t *coordinates, size_t total_coordinates,
52  int64_t start_vid,
53  int64_t end_vid,
54 
55  double initial_temperature,
56  double final_temperature,
57  double cooling_factor,
58  int64_t tries_per_temperature,
59  int64_t max_changes_per_temperature,
60  int64_t max_consecutive_non_changes,
61  bool randomize,
62  double time_limit,
63 
64  General_path_element_t **results,
65  size_t *total_results,
66  char **log_msg,
67  char **notice_msg,
68  char **err_msg);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif // INCLUDE_DRIVERS_TSP_EUCLIDEANTSP_DRIVER_H_
do_pgr_euclideanTSP
void do_pgr_euclideanTSP(Coordinate_t *coordinates, size_t total_coordinates, int64_t start_vid, int64_t end_vid, double initial_temperature, double final_temperature, double cooling_factor, int64_t tries_per_temperature, int64_t max_changes_per_temperature, int64_t max_consecutive_non_changes, bool randomize, double time_limit, General_path_element_t **results, size_t *total_results, char **log_msg, char **notice_msg, char **err_msg)
Definition: euclideanTSP_driver.cpp:45
Coordinate_t
Definition: coordinate_t.h:37
coordinate_t.h
General_path_element_t
Definition: general_path_element_t.h:37
general_path_element_t.h