chiark / gitweb /
WIP routesearch; route tail guesswork pruning optimisation
[ypp-sc-tools.db-test.git] / yarrg / rscommon.h
index a9bca8c1fdadc87dfab844bcde2f28d9f4fe8350..f62fd99d9ed15cdf4d9cd873a6406c3d7a60d38b 100644 (file)
@@ -48,8 +48,20 @@ void sql_bind(sqlite3_stmt *ss, int index, int value,
 extern sqlite3 *db;
 
 void setup_sql(void);
-double value_route(int nislands, const int *islands);
+
+
+typedef struct {
+  double distance_loss_factor;
+  int ntrades;
+  struct TradesBlock *trades;
+  double route_tail_value;
+} IslandPair;
+
+IslandPair *ipair_get(int si, int di);
+
+double value_route(int nislands, const int *islands, int exclude_arbitrage);
 void setup_value(void);
+
 void setup_search(void);
 void search(int start_isle);