Salt land pasture pyomo module

author: young

AfoLogic.SaltbushPyomo.f_con_saltbush_between(model)

Constrain the saltbush feed available on each soil type in each feed period between a given season. Saltbush can be eaten or transferred to the next period.

AfoLogic.SaltbushPyomo.f_con_saltbush_within(model)

Constrain the saltbush feed available on each soil type in each feed period within a given season. Saltbush can be eaten or transferred to the next period.

AfoLogic.SaltbushPyomo.f_con_slp_area(model)

Constrains the SLP area on each LMU based on the rotation selected.

This constraint essentially calculates the hectares of salt land pasture based on the rotation phases selected. The p7 axis is not required on v_slp_area because SLP is a continuous phase and therefore exists in all p7. Removing the p7 axis makes the calculations in saltbush pyomo simpler.

AfoLogic.SaltbushPyomo.f_saltbush_cost(model, q, s, z, p7)

Calculate the total cost required per hectare of salt land pasture.

Used in global constraint (con_profit). See CorePyomo

AfoLogic.SaltbushPyomo.f_saltbush_me(model, q, s, z, p6, f)

Calculate the total energy provided to each nv pool from the selected amount of saltbush.

Used in global constraint (con_me). See CorePyomo

AfoLogic.SaltbushPyomo.f_saltbush_selection(model, q, s, z, p6, f, l)

Calculate the amount of understory required to consume 1t of saltbush in each feed period (this is based on the animals diet selection which changes during the year)

Used in global constraint (con_link_understory_saltbush_consumption). See CorePyomo

AfoLogic.SaltbushPyomo.f_saltbush_vol(model, q, s, z, p6, f)

Calculate the total volume required by each nv pool to consume the selected level of saltbush.

Used in global constraint (con_vol). See CorePyomo

AfoLogic.SaltbushPyomo.f_saltbush_wc(model, q, s, z, c0, p7)

Calculate the total working capital required per hectare of salt land pasture.

Used in global constraint (con_wc). See CorePyomo

AfoLogic.SaltbushPyomo.saltbush_precalcs(params, r_vals, nv)

Call saltbush precalc functions.

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

  • r_vals – dictionary which stores all report values.

  • nv – dictionary which stores information about the feed pools.