Problems from Maximization and minimization

We want to obtain three chemical elements from the substances A and B. One kilo of A contains 8 grams of the first element, 1 gram of the second and 2 of the third ; one kilo of B has 4 grams of the first element, 1 gram of the second one and 2 of the third one. If we want to obtain at least 16 grams of the first element and the quantities of the second one and of the third one have to be maximum 5 and 20 grams respectively, and the maximum quantity of A is double that of B, calculate the kilos of A and those of B that have to used so that the cost is minimal if one kilo of A costs 20 € and one of B 100 €.

See development and solution

Development:

Variables of the problem:

x: Kilos of the substance A.

y: Kilos of the substance B.

Objective Function:

The cost has to be minimized (cost = (price of the kilo of the substance A) × (price of the kilo of A) + (price of the kilo of the substance B) × (price of the kilo of B)): C(x,y)=20x+100y

Restrictions:

  • x0, y0 (the number of kilos cannot be negative).

  • 8x+4y16 (at least we have to get 16 g of the first substance).

  • x+y5 (at most we have to get 5 g of the second substance).

  • 2x+2y20 (at most we have to get 20 g of the third substance).

  • x2y (the amount of substance A is at most twice the amount of B).

Apexes of the region of validity: (These are the intersection points between the straight lines associated with the restrictions, which also satisfy all the inequations. Note that the restriction 2x+2y20 does not contribute excellent information, that is to say, it does not delimit the validity region).

  • (0,4) where cross the restrictions x0 and 8x+4y16.

  • (0,5) where cross the restrictions x0 and x+y5.

  • (103,53) where cross the restrictions x+y5 and x2y.

  • (85,45) where cross the restrictions 8x+4y16 and x2y.

Objective value of the function in the apexes of the area of validity:

  • C(0,4)=200+1004=400
  • C(0,5)=200+1005=500
  • C(103,53)=20103+10053=7003233.33
  • C(85,45)=2085+10045=5605=112

The function cost has a minimal value (112 €) at point (85,45), that is to say, when we buy 85 of kilo of the substance A and 45 of kilo of the B.

Solution:

To manage to minimize the cost, taking into account the restrictions of the problem, 85 of kilo of the substance A and 45 of kilo of the B ought to be bought. In this case the cost would be 112 €.

Hide solution and development
View theory