Crop residue pyomo module¶
author: young
- AfoLogic.CropResiduePyomo.f_con_cropresidue_between(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_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_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_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.