From 6e4bcdf4a3c8c00ae9ec554a0c0c42ee79be1c88 Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Thu, 26 Mar 2015 13:31:25 -0400 Subject: [PATCH] Default number of clusters --- src/gtsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtsp.c b/src/gtsp.c index 79cfc00..c0c0117 100644 --- a/src/gtsp.c +++ b/src/gtsp.c @@ -8,6 +8,7 @@ #include "util.h" #include "flow.h" #include "branch_and_cut.h" +#include "math.h" static double *OPTIMAL_X = 0; @@ -913,8 +914,7 @@ static int GTSP_parse_args(int argc, char **argv) if (input_cluster_count < 0) { - printf("You must specify the number of clusters.\n"); - rval = 1; + input_cluster_count = (int) ceil(input_node_count / 5.0); } if (input_node_count < 0)