In the standardization process, the balanceResidual function will balance the SUA level commodities by assigning imbalances to a specific variable. For example, if the balance for flour has an excess of 5,000 tons, this amount will be added to the food of flour (while for bran it would be allocated to feed). We need to implement the list specifying what variable certain commodities get allocated to (food, feed, industrial uses, etc.) and incorporate this information into the balanceResidual function.
In the standardization process, the balanceResidual function will balance the SUA level commodities by assigning imbalances to a specific variable. For example, if the balance for flour has an excess of 5,000 tons, this amount will be added to the food of flour (while for bran it would be allocated to feed). We need to implement the list specifying what variable certain commodities get allocated to (food, feed, industrial uses, etc.) and incorporate this information into the balanceResidual function.