Skip to content

Fix pollution cost doubly multiplied by timestep length (audit result) - #2542

Open
simonkrogmann wants to merge 1 commit into
remindmodel:developfrom
simonkrogmann:fixbudget
Open

simonkrogmann wants to merge 1 commit into
remindmodel:developfrom
simonkrogmann:fixbudget

Conversation

@simonkrogmann

@simonkrogmann simonkrogmann commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Purpose of this PR

Cost terms of the equation qm_budget are annual. However, vm_costpollution is multiplied by pm_ts before entering the equation. Thus, vm_costpollution is 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

  • ☑️ GAMS Code
  • ◻️ R-scripts
  • ◻️ Documentation (GAMS incode documentation, comments, tutorials)
  • ◻️ Input data / CES parameters
  • ◻️ Tests, CI/CD (continuous integration/deployment)
  • ◻️ Configuration (switches in main.gms, default.cfg, and scenario_config*.csv files)
  • ◻️ Other (please give a description)

Impact

  • ◻️ Bug fix
  • ◻️ Refactoring
  • ◻️ Deletion
  • ◻️ Documentation / comments
  • ◻️ New feature
  • ◻️ Change of parameter values or input data (including CES parameters)
  • ◻️ Minor change (default scenarios show only small differences)
  • ☑️ Fundamental change of results of default scenarios

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/*.Rmd files.

  • I executed the automated model tests (make test) after my final commit and all tests pass (FAIL 0)
  • I adjusted the reporting in remind2 if and where it was needed
  • I adjusted the madrat packages (mrremind and other packages involved) for input data generation if and where it was needed
  • My code follows the coding etiquette
  • I explained my changes within the PR, particularly in hard-to-understand areas
  • I checked that the in-code documentation is up-to-date
  • I adjusted forbiddenColumnNames in readCheckScenarioConfig.R in case the PR leads to deprecated switches
  • I updated the CHANGELOG.md correctly (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

*** 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];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@simonkrogmann simonkrogmann Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants