6 double max_mass=-1, max_volu=-1, max_capi=-1;
7 double distance_loss_factor_per_league;
10 int main(int argc, const char **argv) {
14 debug_flags= ~( dbg_sql2 );
16 sysassert( !setvbuf(debug,0,_IOLBF,0) );
20 if (arg[0] != '-') break;
22 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;
44 if (!strcmp(arg,"specific")) {
46 while ((arg= *argv++))
49 double val= value_route(ni, ia, 0);
50 printf("route value is %g\n", val);
51 } else if (!strcmp(arg,"search")) {
52 max_dist= atoi(*argv++);
53 while ((arg= *argv++))