6 double max_mass=-1, max_volu=-1, max_capi=-1;
7 double distance_loss_factor_per_league;
10 #define CTR(x) int ctr_##x;
14 int main(int argc, const char **argv) {
18 debug_flags= ~( dbg_sql2 );
20 sysassert( !setvbuf(debug,0,_IOLBF,0) );
24 if (arg[0] != '-') break;
26 if (!strcmp(arg,"-DN")) {
35 max_mass= atof(*argv++);
36 max_volu= atof(*argv++);
37 max_capi= atof(*argv++);
38 double loss_per_league= atof(*argv++);
40 if (!loss_per_league) loss_per_league= 1e-7;
41 distance_loss_factor_per_league= 1.0 - loss_per_league;
47 fprintf(stderr,"setup complete, starting search\n");
50 if (!strcmp(arg,"specific")) {
52 while ((arg= *argv++))
55 double val= value_route(ni, ia, 0);
56 printf("route value is %g\n", val);
57 } else if (!strcmp(arg,"search")) {
58 max_dist= atoi(*argv++);
59 while ((arg= *argv++))
65 #define CTR(x) fprintf(stderr," %-30s %10d\n",#x,ctr_##x);