A company is producing two sets of skis, calculate, given some conditions, how many units of each need to be produced for maximum profit.

Conditions:

  • One unit of ski set A takes $6$ hours to process and $1$ hour to varnish.
  • One unit of ski set B takes $4$ hours to process and also $1$ hour to varnish.
  • The workers can only use $1080$ hours for processing and $240$ hours for varnishing in a year.
  • The profit for one unit of A sold is \$$400$, while for B it is \$$300$.

Question:

Assuming all units are sold, how much of each set should be produced to maximize profits in a year?


My reasoning:

The first thing that pops into my head is: a quadratic function with a maxima point that holds the value of total profits. But I have no idea how to actually define the variables in such a way that it would yield a quadratic function.

I've tried to solve the system:

$$\left\{ \begin{array}{c} 6A+4B=1080 \\ A+B=240 \end{array} \right. $$

But this just yields the amount of each set needed to be produced so no hours are wasted, I'm not sure if this would give the most profits however.


P.S. I'm clueless as to what tags I should use, so edits would be appreciated.


Solution 1:

Your problem is a linear programming problem, with a small twist. Here, I am giving a geometric solution. Suppose $ x $ units of ski set A and $ y $ units of ski set B are produced. The objective is to find

$\begin{align*} \arg \max_{x, y} (400x + 300y) \;\; \text{such that} \;\; (6x + 4y) \le 1080 ,\; x + y \le 240 \;\text{and} \; x, y \ge 0 \text{ are integers}. \end{align*}$

Lets draw the feasible set of $ (x, y) $: enter image description here

In the figure above, the feasible set is the yellow colored region, which is bounded by the lines $ 6x + 4y = 1080 $, $ x + y = 240 $, $ x = 0 $ and $ y = 0 $. This is called the the feasible set because the $ (x, y) $ points lying in this region satisfy $ (6x + 4y) \le 1080 $, $ x + y \le 240 $ and $ x, y \ge 0 $. Evidently, within this region, we have to find an integer pair $ (x, y) $ such that $ (400x + 300y) $ is maximum.

Now, this region is a polygon, and a line of the form $ 400x + 300y = c $, where $ c $ is any constant, is not parallel to either of the lines $ (6x + 4y) = 1080 $, $ x + y = 240 $, $ x = 0 $ and $ y = 0 $, which form the boundaries of the polygon. Hence, the maximum value of $ c $ in $ 400x + 300y = c $ will be attained when $ (x, y) $ is any of the vertices of the polygon. This can also be seen in the figure, where several lines of the form $ 400x + 300y = c $ are drawn (presented as dashed red lines). It is seen that the vertex $ (x, y) = (60, 180) $ at the intersection of the lines $ (6x + 4y) = 1080 $, $ x + y = 240 $ maximizes $ 400x + 300y = c $, and the maximum $ c $ is obtained to be 78000.

It also happens to be that the maximizer $ (x, y) $ pair is an integer pair $ (60, 180) $, and hence it is the answer to your problem.

That the optimum solution of such a constrained linear optimization problem occurs at the vertices of the feasible set is the central idea of linear programming. However, the difference of your problem with an usual linear programming problem was the requirement of $ x $ and $ y $ to be integers. The formulation of the problem made finding the solution easy, as the optimizing vertex was an integer pair. If that was not so, we would have needed to find the optimum integer pair, which would likely been an integer pair near the vicinity of the optimum vertex.