Fix remittances in aggregate resource constraint#1036
Fix remittances in aggregate resource constraint#1036jdebacker merged 4 commits intoPSLmodels:masterfrom
Conversation
|
@jdebacker. I checked everywhere else in the theory to see if there were any other errors, and I couldn't find any. The test run that I ran locally on my machine (see above output) worked great. This is ready to merge as soon as you review. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1036 +/- ##
=======================================
Coverage 72.67% 72.67%
=======================================
Files 20 20
Lines 5068 5068
=======================================
Hits 3683 3683
Misses 1385 1385
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@jdebacker. The resource constraint is correct everywhere in the documentation that I can find it. Equation (121) is correct and has this form: The minus is like imports. They are subtracted off the right-hand-side. But the resource constraint error should be the following: The issue was that I had the resource constraint error as "minus RM" rather than "plus RM". That is fixed now, and all the documentation was right all along. |
This PR fixes a sign error typo on the remittances term in the aggregate resource constraint.
RMterm inaggregates.py,resource_constraint()function.test_aggregates.py,test_resource_constraint()function.I also ran a test execution script that took the baseline specification from
run_ogcore_example.pyand added the Philippine remittance calibration specification.This specification ran perfectly in both the SS and TPI computations.
Steady-state equilibrium computation output
Transition path equilibrium computation output (24 min 0 sec)
Merging this PR will resolve and close Issue #1035 and will allow us update the remittances calibration in the OG-PHL repository (see OG-PHL Issue #40 and PR #39 thread).
cc: @jdebacker