Dry matter from the recipe
Ration dry matter is a weighted average: multiply each ingredient's share of the as fed batch by its own dry matter, add them up, and divide by the total. The model assumes corn silage at 35 percent dry matter, haylage at 45 percent and a grain mix at 88 percent, typical values that real farms check by testing.
Batch weight then follows from how much dry matter the cows should eat: as fed weight = cows x dry matter per cow / ration dry matter fraction. The model uses 25 kg of dry matter per cow per day as a round teaching number.
Why testing matters
Silage dry matter drifts with weather and with where in the pile it is taken. If silage gets wetter and nobody adjusts the recipe, cows quietly get less dry feed than planned, so many farms test forage moisture weekly.