Flexibilize residues for 2nd generation bioenergy demand #833
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.
🐦 Description of this PR 🐦
The demand for residues that is used for 2nd generation bioenergy is based on old magpie runs - 1/3 of the (back-than) sustainable fraction was used and is still enforced as exogenous demand. Due to various changes (probably also or especially also in the regional setup(?)), these demands seem to be very high, causing additional crop production of sugar cane in JPN at the moment.
We flexibilized the demand by making the exogenous demand an upper bound and adding a subsidy that enforces the removal of the residues (but no additional production of residues via additional crop production).
We take the value for the subsidy for 1st generation BE, which is already used in the model as a benchmark.
Flexibilizing can bring down the sugar cane demand in JPN:
Also to see how the residual removal for 2nd generation BE works the subsidy levels matter:

With subsidy at 6.5 and 10 USD17MER per GJ leading to no spiky behavior.
On the down side, costs al

so react on these new subsidies:
And run time is also much longer:
current default: 0.53 h
subsidies-6.5: 0.80 h
subsidies-10: 0.72 h
... which is coming from every time step, just needing 1 min longer to solve.
🔧 Checklist for PR creator 🔧
Self-review own code
magpie4R library has been updated accordingly and backwards compatible where necessary.scenario_config.csvhas been updated accordingly (important ifdefault.cfghas been updated)Document changes
CHANGELOG.mdgoxygen::goxygen()and verify the modified code is properly documentedPerform test runs
Rscript start.R --> "test runs"📉 Performance changes 📈
🚨 Checklist for reviewer 🚨
CHANGELOGis updated correctly