-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add biomass demand for bioplastics in 62_material #427
Changes from 14 commits
dd15c06
c4e18ce
56ce968
b7c3c56
d669be7
13865e3
bb04caa
9ece2be
fbf88b0
e148be1
47a16cc
d2eb979
4ef4d18
0a559f4
7ac17c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,24 @@ else | |
); | ||
|
||
p62_scaling_factor(i) = 1; | ||
p62_scaling_factor(i)$(p62_dem_food_lh(i) > 0) = sum(kfo, vm_dem_food.l(i,kfo)) / p62_dem_food_lh(i); | ||
p62_scaling_factor(i)$(p62_dem_food_lastcalibyearh(i) > 0) = sum(kfo, vm_dem_food.l(i,kfo)) / p62_dem_food_lastcalibyearh(i); | ||
|
||
*' @stop | ||
|
||
* if max. bioplastic demand is set to zero, overwrite bioplastic demand with zero | ||
if (s62_max_dem_bioplastic = 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this case treated separately and why in presolve and not in preloop where it is done for all other cases? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was left over from an earlier version of handling the double counted bioplastic substrate. I moved it to preloop |
||
p62_dem_bioplastic(t,i) = 0 | ||
); | ||
|
||
* translate bioplastic demand to biomass demand using conversion factors between bioplastic and the different biomass sources | ||
p62_bioplastic_substrate(t,i,kall) = p62_dem_bioplastic(t,i) * f62_biomass2bioplastic_conversion_ratio(kall); | ||
|
||
* In t_past, biomass demand for bioplastic is already included in the general material demand, which is | ||
* scaled for future years. Therefore we calculate the amount of biomass that is counted twice, and subtract | ||
* it in the final biomass demand equation. | ||
if (sum(sameas(t_past,t),1) = 1, | ||
p62_bioplastic_substrate_double_counted(t,i,kall) = p62_bioplastic_substrate(t,i,kall); | ||
p62_bioplastic_substrate_lastcalibyear(i,kall) = p62_bioplastic_substrate(t,i,kall); | ||
else | ||
p62_bioplastic_substrate_double_counted(t,i,kall) = p62_bioplastic_substrate_lastcalibyear(i,kall) * p62_scaling_factor(i); | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
* list of files that are required here | ||
f62_dem_material.cs3 | ||
f62_bioplastic2biomass.csv | ||
f62_hist_dem_bioplastic.csv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps use
ref
instead oflastcalibyear(h)
as it is basically your point of reference for the following calculations, right?