chiark / gitweb /
WIP route value calculation - compiles, although doesn't run the LP
[ypp-sc-tools.db-live.git] / yarrg / rscommon.h
index 5c4b3c8b6c7b6bd7cb7c0abbea1e58d03cc530bc..b1003bf2325c47b6bcf9ca68c5d3a94e4e99eede 100644 (file)
@@ -4,7 +4,8 @@
 #include <sqlite3.h>
 
 #define DEBUG_FLAG_LIST                                \
-   DF(sql)
+   DF(sql)                                     \
+   DF(value)
 
 
 #define SQL_MUST( call ) ({                                     \
 int sql_step_wrap(sqlite3_stmt *ssh, const char *ssh_string,
                  const char *file, int line);
 
+int sql_single_int(const char *stmt);
+
+#define MAX_ROUTELEN 20
+
 #include "common.h"
 
 extern sqlite3 *db;
-extern sqlite3_stmt *ss_ipair;
 
 void setup(void);
 void value_route(int nislands, const int *islands);
 void setup_value(void);
+void setup_commods(void);
+
+extern double max_mass, max_volu, max_capi;
+extern double distance_loss_factor_per_league;
+
+#define LOSS_FACTOR_PER_DELAY_SLOT (1-1e8)
 
 #endif /*RSCOMMON_H*/