Three goals for this assignment:
If you can walk someone through how to do these optimizations using your tool of choice then you are making good progress.
Let’s think about cost, and how cost depends on the way a choice problem is framed. Let’s imagine that your company now produces two products. Let \(x\) and \(y\), respectively, denote the quantities of the two products that are produced and sold. Any nonnegative quantities satisfying the following constraints can be produced:
\[x+y\leq 400\] \[x+2y \leq 500\]
Your firm’s revenue is given by \(40x + 42y\), and your cost is given by \(30x + 30y\). (Though this is clearly a short-run story, as capacity is fixed, we suppress the fixed cost and measure “profit” as \(10x + 12y\).)
What are we choosing in this framing of the problem?
\(x\) and \(y\). Include any natural (implied) constraints, i.e. no negative production.
We want to maximize profit.
\[\Pi = 10x + 12y\]
\[x+y\leq 400\] \[x+2y \leq 500\]
You may simplify here if needed. Once you’ve specified everything your set up is complete.
For a given objective function and constraint, the shadow price on the constraint is the rate at which the value of the objective function changes as the constraint is relaxed.
We often are interested in calculating the change over a specific number of units, as this allows us to characterize the benefit of relaxing the constraint by a specific increment.
You can think of the shadow price as the opportunity cost of not relaxing the constraint.
Shadow prices are key when we consider the costs and benefits of relaxing constraints.
<gekko.gekko.EquationObj at 0x12ffa3a00>
Result:
<gekko.gekko.EquationObj at 0x12ffa36a0>
Result:
Let’s keep thinking about the scenario above. Now let’s think in terms of how many units of the first product, \(x\), to produce and sell. Clearly we require \(0 \leq x \leq 400\). Within this range, it should also be clear you would produce as many units of the second product as possible. The constraints imply, for any such \(x\), the corresponding choice of \(y\) would be \(y = g(x) = min\{400 - x, 0.5(500 - x)\}\).
This implies profit as a function of \(x\) given by \(10x + 12g(x) = 10x + 12 \times min\{400 - x, 0.5(500 - x)\}\).
\(10x + 12g(x) = 10x + 12 \times min\{400 - x, 0.5(500 - x)\}\).
Let’s set this up as simply as possible
\(\Pi=10x + 12g(x)=10x + 12 \times min\{400 - x, 0.5(500 - x)\}\)
We just have two options for \(g(x)\), calculate both, then apply the condition.
Step back to \(\Pi=10x+12y\)
Revenue from \(x\) is 40. Cost of \(x\) is 30. So the first term is clear. If we frame the decision as two independent choices, then this (30) is the marginal cost of \(x\).
However, when we substitute \((.5(500-x))\) for \(y\) we are framing \(y\) as a consequence of \(x\) not as an independent choice.
\[\Pi=10x+12y\] \[\Pi=10x+12(.5(500-x))\] \[\Pi=10x + 3,000 - 6x\]
Framed this way with \(y\) expressed as a function of \(x\) our choice of \(x\) incurs additional costs through its effect on \(y\). \(-6x\) is change in the revenue from \(y\) due to a unit change in \(x\).
A builder specializes in the construction of car garages and tool sheds. It has at most 80 hours available to frame the garages and tool sheds and at most 74 hours to roof the garages and tool sheds. It takes 10 hours to frame a garage and 7 hours to roof it. It takes 4 hours to frame a tool shed and 5 hours to roof it. If the builder makes a profit of $570 per garage and $300 per tool shed, how many can he build to receive a maximum profit?
Just for fun :)
We can set this up as \(y=f(x)\)
Ava runs a full-service catering business where she caters banquets and receptions. She prepares food ahead of time and she sets up tables on the day of the event. Food preparation for banquets is 12 hours and for receptions is 4, while setup hours for banquets is 9 hours and receptions is 6 hours. The maximum hours available for food preparation are 35 hours and for setup are 40 hours. If she makes $800 for each banquet and $525 for each reception, how many banquets and receptions can Ava cater to make a maximum profit?
<gekko.gekko.EquationObj at 0x15e0972e0>
What risks do you think a real business should consider that are not described here?
Describe how you would gather and analyze this information.
Based on the risks and the profit you expect, would you recommend opening a catering business to compete with Ava? Please describe your reasoning in detail.
Again, I am leaving these unanswered here so that you can spend some time thinking about how you would answer.