From 042f6683742c1eedc247c472ff065572a2ac3460 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Thu, 11 Feb 2016 21:35:07 +0100 Subject: [PATCH] FLY LITTLE MONSTERS! --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 155c32f..f50d836 100644 --- a/main.py +++ b/main.py @@ -135,6 +135,7 @@ def load(d, w, p, q): assert(Da[d]) if (Dp[d] != Wp[w]): Dd[d] += distance(Dp[d], Wp[w]) + Dd[d] = Cw[c] Wi[w][p] += -q Di[d][p] += +q assert(Wi[w][p] >= 0) @@ -148,6 +149,7 @@ def unload(d, w, p, q): assert(Da[d]) if (Dp[d] != Wp[w]): Dd[d] += distance(Dp[d], Wp[w]) + Dd[d] = Cw[c] Wi[w][p] += +q Di[d][p] += -q assert(Dd[d] <= T) @@ -159,6 +161,7 @@ def deliver(d, c, p, q): assert(Da[d]) if (Dp[d] != Cp[c]): Dd[d] += distance(Dp[d], Cp[c]) + Dd[d] = Cp[c] Ci[c][p] += +q Di[d][p] += -q Dd[d] += 1