chiark / gitweb /
WIP routesearch; before better SQL stmts
[ypp-sc-tools.db-test.git] / yarrg / rsmain.c
index 00e918e8aedbfe320bdd7628d35f35c694b66086..ed176354e902ed8a402be49eed313240abb00bc9 100644 (file)
@@ -2,8 +2,24 @@
 
 #include "rscommon.h"
 
+int o_quiet= 0;
+double max_mass=-1, max_volu=-1, max_capi=-1;
+double distance_loss_factor_per_league;
+
 int main(int argc, const char **argv) {
   int ia[argc], ni=0;
+
+  debug_flags= ~0UL;
+  setup();
+
+  max_mass= atof(*++argv);
+  max_volu= atof(*++argv);
+  max_capi= atof(*++argv);
+  double loss_per_league= atof(*++argv);
+
+  if (!loss_per_league) loss_per_league= 1e-7;
+  distance_loss_factor_per_league= 1.0 - loss_per_league;
+  
   const char *arg;
   while ((arg= *++argv)) {
     ia[ni++]= atoi(arg);