You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

40 lines
770 B

//
// Created by isoron on 18/03/15.
//
#ifndef _PROJECT_GTSP_H_
#define _PROJECT_GTSP_H_
#include "lp.h"
#include "graph.h"
struct GTSP
{
struct Graph *graph;
int *clusters;
int cluster_count;
double *x_coordinates;
double *y_coordinates;
};
int GTSP_create_random_problem(
int node_count, int cluster_count, int grid_size, struct GTSP *data);
void GTSP_free(struct GTSP *data);
int GTSP_init_data(struct GTSP *data);
int GTSP_init_lp(struct LP *lp, struct GTSP *data);
int GTSP_add_cutting_planes(struct LP *lp, struct GTSP *data);
int GTSP_write_problem(struct GTSP *data, char *filename);
int GTSP_write_solution(struct GTSP *data, char *filename, double *x);
int GTSP_main(int argc, char **argv);
#endif //_PROJECT_GTSP_H_