14#include "../test/main_test.h"
23int main(
int argc,
char *argv[]) {
26 perror(
"Wrong number of arguments");
27 printf(
"\nYou need to pass 2 arguments: <input file> <output file>\n");
32 char *input_file = argv[1];
33 char *output_file = argv[2];
40 freopen(output_file,
"w+", stdout);
void branch_and_bound(Problem *current_problem)
The Branch and Bound algorithm.
void print_problem(void)
Get all metrics of the problem.
The struct used to represent the overall problem.
Graph graph
The Graph of the problem.
void read_tsp_csv_file(Graph *graph, char *filename)
Reads a .csv file and stores the data in the Graph.