Data
Balance a feed ration
Least-cost feed that still meets every nutritional constraint.
Fill it in
The animal, the stage, and the nutrient targets.
With prices and analyses.
Least cost with an unfeedable mix is not a solution.
Your prompt
Balance the ration. Requirements: [your requirements] Available: [your available feeds] Solve for least cost subject to the nutrient constraints, and show which constraints are binding. The binding ones are where the cost is, and they are what to negotiate on or substitute. Respect the practical limits as hard constraints: maximum inclusion rates, minimum fibre, and palatability. A mathematically optimal mix animals will not eat is not a solution, and this is the failure mode of every naive formulation. Show the shadow price on each ingredient: what the ration cost would change by if you had more of it. That is the buying decision. Flag if the requirements cannot be met at all, rather than returning the closest miss.
Use Balance a feed rationOpens with everything above already filled in.
Why this works
A mathematically optimal mix that animals will not eat is not a solution, which is the failure mode of every naive formulation. This treats inclusion limits as hard constraints and reports shadow prices, which is the actual buying decision.