Consider the following problem:
A factory has to produce some amount of a certain mixture, which is made of three substances, A, B and C. This mixture should contain at least 30 kg of substance A, at least 20 kg of substance B and at most 25 kg of substance C. The factory is going to use two intermediate products P1 and P2. Intermediate product P1 is 70% substance A, 10% substance B and 20% substance C, whereas intermediate product P2 -- 30% of A, 30% of B and of C. The price of one kilogramme of these intermediate products is 25 dollars and 15 dollars, respectively.
The question is: how much of intermediate products should the factory buy to fulfill the requirements and minimize the cost?
My approach is as follows: let's denote the amount of intermediate products P1 and P2 by $X$ and $Y$ respectively. The cost of the purchase is then: $$ 25\cdot X+15\cdot Y$$ We have to find the minimum of this function with the following constraints: $$0.7\cdot X+0.3\cdot Y\ge 30$$ $$0.1\cdot X+0.3\cdot Y\ge 20$$ $$0.2\cdot X+0.3\cdot Y\le 25$$
My question is: how does one determine the minimum of such function knowing the constraints? Is there any method other than ''plot the inequalities and try to fit the line''?