pgRouting
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
eucledianTSP.c File Reference
#include "postgres.h"
#include "executor/spi.h"
#include "funcapi.h"
#include "utils/array.h"
#include "catalog/pg_type.h"
#include "fmgr.h"
#include "./../../common/src/debug_macro.h"
#include "./../../common/src/time_msg.h"
#include "./../../common/src/pgr_types.h"
#include "./../../common/src/postgres_connection.h"
#include "./../../common/src/coordinates_input.h"
#include "./eucledianTSP_driver.h"

Go to the source code of this file.

Macros

#define DEBUG
 

Functions

PGDLLEXPORT Datum eucledianTSP (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (eucledianTSP)
 
static void process (char *coordinates_sql, int64_t start_vid, int64_t end_vid, double time_limit, int64_t tries_per_temperature, int64_t max_changes_per_temperature, int64_t max_consecutive_non_changes, double initial_temperature, double final_temperature, double cooling_factor, bool randomize, General_path_element_t **result_tuples, size_t *result_count)
 

Macro Definition Documentation

#define DEBUG

Definition at line 40 of file eucledianTSP.c.

Function Documentation

PGDLLEXPORT Datum eucledianTSP ( PG_FUNCTION_ARGS  )

Definition at line 155 of file eucledianTSP.c.

References pgr_text2char(), and process().

PG_FUNCTION_INFO_V1 ( eucledianTSP  )
static void process ( char *  coordinates_sql,
int64_t  start_vid,
int64_t  end_vid,
double  time_limit,
int64_t  tries_per_temperature,
int64_t  max_changes_per_temperature,
int64_t  max_consecutive_non_changes,
double  initial_temperature,
double  final_temperature,
double  cooling_factor,
bool  randomize,
General_path_element_t **  result_tuples,
size_t *  result_count 
)
static