This work presents a new approach to solving the problem of optimization of selection of the blend components quantity. The problem of blending refers to provision of the required amounts of nutrients, at minimal cost of purchasing the products needed for production of a compound feed. The problem of diet is essential for humans, animals and agricultural production. In the presented case the linear programming method in the Flexsim environment was applied. Firstly a simulation model was built that shows the technology of preparing the mixture, while maintaining the minimum required amounts of nutrients. Secondly, the optimizer tool was used to determine the structure of the nutrients, so that the cost of purchase was the cheapest. The results are presented in a numerical and graphical form.