Skip to content

Remove switch cm_steel_secondary_max_share_scenario - #2533

Open
tobiasdiez wants to merge 1 commit into
developfrom
remove-steel-secondary-max
Open

tobiasdiez wants to merge 1 commit into
developfrom
remove-steel-secondary-max

Conversation

@tobiasdiez

@tobiasdiez tobiasdiez commented Nov 12, 2026 •

Copy link
Copy Markdown

Purpose of this PR

The switch let a scenario override the maximum secondary steel share. As far as I could find out, it was added for ARIADNE in 2022 and only ever set in that project's scenario config, which no longer sets it and has since been deleted. No other config uses it.

Industry demand will move to remind-mfa, where the scrap share cap is computed and then, via mrindustry, passed to REMIND in the future.

A cap only in REMIND would no longer match the scrap-based steel the MFA computed.

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
  • ◻️ 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
.

  • 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)

  • Runs with these changes are here: N/A
  • Comparison of results (what changes by this PR?): none expected, the switch was off by default and the removed code only ran when it was set. test_01-codeCheck and test_01-readCheckScenarioConfig pass.

@tobiasdiez

Copy link
Copy Markdown
Author

(Sorry for pushing directly to the remind repo)

@JakobBD

JakobBD commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

beautiful!

tobiasdiez added a commit to pik-piam/remind-mfa that referenced this pull request Nov 23, 2026
The maximum share of scrap in the metallic input to steel production was
a constant 0.7 in every year and region. It now follows the current
logic in mrindustry: for historical years, it is the scrap share of each
region and year (scrap input over metallic input) and then it gets
extrapolated linearly to the scenario target (default is 70% in 2050).

Notes (as I'm a bit unsure how to handle these correctly):

- The historical system has no scrap flows, so
SteelMFASystemHistorical.scrap_share computes the scrap input as the
future system does, capped at 0.7 of the metallic input as before (now a
documented expert guess as it doesn't make sense to use scenario targets
for historical data).
- The share is exported so that mrindustry can then pass it further to
REMIND. In particular, we can thus consistently model scenarios with
different max scrap shares, and can remove scenario-specific modelling
in REMIND (remindmodel/remind#2533).

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: pik-piam-bot[bot] <335062343+pik-piam-bot[bot]@users.noreply.github.com>
@tobiasdiez

Copy link
Copy Markdown
Author

I've now also run make test on the cluster, and it passes. Is this enough of testing, or is something else required here?

@tobiasdiez
tobiasdiez marked this pull request as ready for review November 24, 2026 09:59
@tobiasdiez
tobiasdiez requested a review from JakobBD November 24, 2026 09:59
The switch let a scenario override the maximum secondary steel share.
As far as I could find out, it was added for ARIADNE in 2022 and only
ever set in that project's scenario config,
which no longer sets it and has since been deleted. No other config uses it.

Industry demand will move to remind-mfa, where the scrap share cap is computed
and then, via mrindustry, passed to REMIND in the future.

A cap only in REMIND would no longer match the scrap-based steel the MFA computed.
@tobiasdiez
tobiasdiez force-pushed the remove-steel-secondary-max branch from ad2c9ed to 9ff6972 Compare November 24, 2026 10:00
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