Crop residue pyomo module¶
author: young
- AfoLogic.CropResiduePyomo.f_con_cropresidue_between(model, MP_lp_vars)¶
Links the consumption of a given category with the provision of another category, or the transfer of stubble to the following period. E.g. category A consumption provides category B. Category B can either be consumed (hence providing category C) or transferred to the following period.
- AfoLogic.CropResiduePyomo.f_con_cropresidue_within(model)¶
Links the consumption of a given category with the provision of another category or the transfer of stubble to the following period. E.g. category A consumption provides category B. Category B can either be consumed (hence providing category C) or transferred to the following period.
- AfoLogic.CropResiduePyomo.f_cropresidue_consumption_emissions(model, q, s, p6, z)¶
Calculate the emissions linked to consumption of stubble
Used in global constraint (con_emissions). See BoundPyomo
- AfoLogic.CropResiduePyomo.f_cropresidue_me(model, q, s, p6, f, z)¶
Calculate the total energy provided to each nv pool from the selected amount of stubble.
Used in global constraint (con_me). See CorePyomo
- AfoLogic.CropResiduePyomo.f_cropresidue_production_emissions(model, q, s, p7, z)¶
Calculate the emissions linked to the residue at harvest activity.
This is separate function to above because it has p7 axis not p6.
Used in global constraint (con_emissions). See BoundPyomo
- AfoLogic.CropResiduePyomo.f_cropresidue_vol(model, q, s, p6, f, z)¶
Calculate the total volume required by each nv pool to consume the selected level of stubble.
Used in global constraint (con_vol). See CorePyomo
- AfoLogic.CropResiduePyomo.stub_precalcs(params, r_vals, nv, cat_propn_s1_ks2)¶
Call crop precalc functions.
- Parameters:
params – dictionary which stores all arrays used to populate pyomo parameters.
report – dictionary which stores all report values.