LPSolve – What is LPSolve
LPSolve is a desktop application developed in Visual Basic using Microsoft Visual Studio and the VB.NET framework. It is designed to formulate least-cost rations for livestock by combining a powerful mathematical optimization engine with a flexible user interface and comprehensive reporting tools. The program is built around the lpsolve mixed-integer linear programming algorithm, which allows users to identify feed combinations that meet defined nutrient constraints at the lowest possible cost.
The core function of LPSolve is least-cost ration formulation. Users define nutrient requirements or constraints—such as minimum or maximum levels of energy, protein, minerals, or other nutrients—and select from a library of available feed ingredients. The linear programming solver evaluates thousands of possible ingredient combinations and identifies the solution that satisfies all constraints while minimizing total ration cost. This approach ensures nutritionally adequate diets while providing transparency and economic efficiency.
LPSolve is designed to be applicable to a wide range of animal classes, including dairy and beef cattle, calves, small ruminants, and other livestock species. The program does not impose predefined animal models; instead, it allows users to define requirements directly, making it suitable for both research and practical feeding applications. For calf diets in particular, LPSolve can be used to balance milk replacers, starters, grower feeds, and forages based on user-specified nutrient targets.
In addition to formulation, LPSolve includes tools for reviewing, adjusting, and reporting ration results. Users can easily modify ingredient availability, nutrient constraints, or prices and immediately see how these changes affect ration composition and cost. Output tables and reports provide detailed insight into ingredient inclusion rates, nutrient supply, and constraint binding, making LPSolve a practical tool for nutritionists, researchers, and advisors seeking reliable and transparent least-cost ration solutions.