This repository was archived by the owner on Mar 12, 2026. It is now read-only.
Commit 9d8b44b
committed
Fix open economy: real intermediate imports, balanced trade, importPush cap
Three bugs in OpenEconomy:
1. Imported intermediates scaled with priceLevel² (sectorOutputs already
includes PL, then multiplied by PL again) — removed double-counting
2. Imported intermediates used nominal sector output — now divides by PL
to get real output, since foreign goods are priced in EUR not PLN
3. ER import effect was inverted: (baseER/ER)^ε reduced PLN bill when
PLN weakened — corrected to (ER/baseER)^(1-ε) net effect
Two calibration fixes:
- OeExportBase = 475M (balances initial trade with intermediate imports;
legacy ExportBase=190M was calibrated without I-O imports)
- OeImportPushCap = 3%/month (prevents runaway ER→inflation→ER spiral)
Export competitiveness now uses real exchange rate (PL/ER) instead of
separate PL and ER terms that double-counted.
Result: ER stable at 4.33→2.66 (appreciation from deflation-driven
export competitiveness). PLN advantage over EUR preserved (61% vs 78%
unemployment at BDP=2000).1 parent d009150 commit 9d8b44b
3 files changed
Lines changed: 34 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
220 | 230 | | |
221 | 231 | | |
222 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | | - | |
26 | | - | |
27 | 29 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | | - | |
36 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
38 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments