Repository navigation
Fix pollution cost doubly multiplied by timestep length (audit result) - #2542
Open
simonkrogmann wants to merge 1 commit into
Open
simonkrogmann wants to merge 1 commit into
simonkrogmann wants to merge 1 commit into
Conversation
simonkrogmann
force-pushed
the
fixbudget
branch
from
November 23, 2026 10:05
97467b1 to
d7014ea
Compare
| *** SOF ./modules/11_aerosols/exoGAINS2025/equations.gms | ||
| ***-------------------------------------------------------------------------- | ||
| *** JeS: factor 0.000001 converts units from M$ to T$: e.g. for sulfur units are [TgS/TWa]*[TWa]*[$/pm_ts] | ||
| *** Unit chain, e.g. for sulfur: emission factor [Tg SO2/TWa] * energy flow [TWa/yr] * abatement cost [$/t SO2] = [Mt SO2/yr] * [$/t SO2] = [M$/yr]; |
Contributor
There was a problem hiding this comment.
I am wondering: Jessica put the unit "[$/pm_ts]" into the description.
If that were true, then the original formulation would be correct (so to include "* pm_ts" in the formula)
Did you check that p11_EF_uncontr indeed has the unit "$/t SO2", instead of the old description "$/pm_ts"?
@simonkrogmann @strefler
Contributor
Author
There was a problem hiding this comment.
For sulfur units:
pm_emifac is in Mt SO2/TWa (=Tg SO2/TWa) which is subtracted from p11_EF_uncontr (unit undocumented). So I`d hope they have the same unit.
So we have:
| Factor | Unit |
|---|---|
(p11_EF_uncontr - pm_emifac) |
probably Tg SO2/TWa |
* vm_demPe |
documented as TWa |
* p11_share_sector |
share between 0 and 1 |
* p11_costpollution |
$/t |
For me, the problem might be vm_demPe:
Is the TWa demand per year or per time step?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of this PR
Cost terms of the equation
qm_budgetare annual. However,vm_costpollutionis multiplied bypm_tsbefore entering the equation. Thus,vm_costpollutionis 5-10 times higher than it should be.In either this or a separate PR we should improve documentation of which variables/equations are annual and which per time step.
Type of change
Indicate the items relevant for your PR by replacing ◻️ with ☑️.
Do not delete any lines. This makes it easier to understand which areas are affected by your changes and which are not.
Parts concerned
Impact
Checklist
Do not delete any line. Leave unfinished elements unchecked so others know how far along you are.
In the end all checkboxes must be ticked before you can merge.
Note: This is not required for documentation PRs that only touch
tutorials/or*.md/*.Rmdfiles.make test) after my final commit and all tests pass (FAIL 0)remind2if and where it was neededforbiddenColumnNamesin readCheckScenarioConfig.R in case the PR leads to deprecated switchesCHANGELOG.mdcorrectly (added, changed, fixed, removed, input data/calibration)Further information (optional)
CS2:
/p/tmp/simonkr/remind/output/compScen-budget-npi-2026-11-17_00.11.32-H12-to2050.pdf/p/tmp/simonkr/remind/output/compScen-budget-npi-2026-11-17_00.11.32-H12.pdf/p/tmp/simonkr/remind/output/compScen-budget750-2026-11-17_09.20.24-H12-to2050.pdf/p/tmp/simonkr/remind/output/compScen-budget750-2026-11-17_09.20.24-H12.pdf/p/tmp/simonkr/remind/output/compScen-budget1000-2026-11-17_09.20.55-H12-to2050.pdf/p/tmp/simonkr/remind/output/compScen-budget1000-2026-11-17_09.20.55-H12.pdf