Crop grazing pyomo module

author: young

AfoLogic.CropGrazingPyomo.cropgraze_precalcs(params, r_vals, nv)

Call crop precalc functions.

Parameters:
  • params – dictionary which stores all arrays used to populate pyomo parameters.

  • report – dictionary which stores all report values.

AfoLogic.CropGrazingPyomo.f_con_crop_DM_transfer(model)

Links seeding with the ability to graze crops.

Each period following seeding provides feed (if it is within the crop grazing window) which can be consumed in the given period. DM that is not consumed is transferred into the following feed period (without changing the growth rate of the crop).

Note: there is no corresponding ‘between’ constraint because there is no carry over across the break.

AfoLogic.CropGrazingPyomo.f_grazecrop_biomass_penalty(model, q, s, p7, k, l, z)

Calculate the yield penalty from grazing crops (kg).

Used in global constraint (con_grain_transfer). See CorePyomo

AfoLogic.CropGrazingPyomo.f_grazecrop_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.CropGrazingPyomo.f_grazecrop_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