Spaces:
Sleeping
Sleeping
Update logistics_engine.py
Browse files- logistics_engine.py +4 -8
logistics_engine.py
CHANGED
|
@@ -1,10 +1,6 @@
|
|
| 1 |
-
def
|
| 2 |
-
|
| 3 |
-
congestion_index = 0.65
|
| 4 |
-
throughput_index = 0.72
|
| 5 |
-
|
| 6 |
return {
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
"logistics_friction": 1.0 - throughput_index
|
| 10 |
}
|
|
|
|
| 1 |
+
def logistics_kernel(econ):
|
| 2 |
+
friction = 0.08
|
|
|
|
|
|
|
|
|
|
| 3 |
return {
|
| 4 |
+
"transport_loss": econ["supply"] * friction,
|
| 5 |
+
"effective_supply": econ["supply"] * (1 - friction)
|
|
|
|
| 6 |
}
|