Prof. Polly

Data Analytics / Module 3 / Topic 9

Topic 9 · Managerial Decisions

Finding the Best Plan

Turn a decision into a model, map every plan that fits your limits, and let the corners point to the best one.

Tiggie the tiger cub, thinking
Your profit lineAnswer Tiggie to add a point
0 of 8
Meet Sprout & Stem again. The plant shop (made up for this guide) now makes two products each week: Desk Pots that earn $4 profit each and Hanging Baskets that earn $9 each. Baskets earn more, so should the shop make only baskets? Eight short stops to find out.
STOP 1 OF 8

The three parts of a model

A decision model writes a business choice in three parts.

The idea

  • Decision variables: the choices you control. Example: how many of each product to make.
  • Objective: the one number you want as large (or as small) as possible. Example: total profit.
  • Constraints: the limits every plan must respect. Example: hours, materials, budget.

Try it: which part is it?

STOP 2 OF 8

Sprout & Stem's model

Put the numbers in, and the decision is on paper.

Each weekDesk Pot (D)Hanging Basket (H)Available
Profit per unit$4$9
Potting hours per unit1244 hours
Soil bags per unit1354 bags
Pots per unit1139 pots
Make as large as possible: profit = 4D + 9H
Hours: 1D + 2H ≤ 44
Soil: 1D + 3H ≤ 54
Pots: D + H ≤ 39
And: D ≥ 0, H ≥ 0 (no negative products)

Try it: check a plan

Desk Pots Baskets
STOP 3 OF 8

The feasible region

Every plan that fits all the limits, drawn as one shape.

The idea

A plan that meets every constraint is feasible. All the feasible plans together form the feasible region. When the objective and the limits are straight-line formulas, the problem is a linear program.

Try it: tap the chart to place a plan

Hours limitSoil limitPots limitFeasible region
Tap anywhere on the chart.
STOP 4 OF 8

The best plan sits at a corner

You do not have to test every plan.

The idea

For a linear program that has a best answer, at least one best plan sits at a corner of the feasible region, where limits meet. If two corners tie, every plan on the edge between them ties too. So check the corners.

Try it: test each corner

Tap a corner to work out its profit.
STOP 5 OF 8

Why not make only baskets?

The product that earns the most per unit is not always the answer.

PlanDesk PotsBasketsProfit
Only baskets (soil runs out)018$162
Only desk pots (pots run out)390$156
Best mix2410$186

The idea

What matters is profit per unit of the scarce resource. Per potting hour, a basket earns $4.50 and a desk pot $4.00. But per bag of soil, a basket earns only $3.00 and a desk pot $4.00. Baskets eat soil, so the best plan mixes both.

STOP 6 OF 8

Which limits bind?

The model tells you where more of a resource would pay off.

The idea

A limit that is fully used at the best plan is binding. One more unit of a binding resource can raise the best profit. That gain is the resource's shadow price. A limit with room to spare has a shadow price of zero. A shadow price holds only within a range: change the limit enough and it can change too.

At the best plan (24 desk pots, 10 baskets)UsedAvailable
Potting hours4444binding
Soil bags5454binding
Pots34395 spare

Try it: add one more unit

Tap a button to re-solve the model with one more unit.
STOP 7 OF 8

The same model in Excel Solver

Solver's three boxes are the model's three parts.

Model partIn SolverAt Sprout & Stem
Decision variablesChanging cellsUnits of desk pots and baskets
ObjectiveObjective cell, set to MaxTotal profit
ConstraintsConstraint cells and limitsHours, soil, and pots used, each ≤ its limit
Solver finds the best answer inside your model. Whether it is the best real-world plan depends on whether the model's numbers and limits are right.

The full step-by-step is in Try the Tool, under "Do it in Excel."

STOP 8 OF 8

Spot the mistake

Six quick cases. Four are common optimization mistakes, and two are fine.

Nice work. Your profit line is complete!

Now try the tool: change the profits or the limits and watch the best plan move.

A two-product planner. Change any number and the tool redraws the feasible region, checks every corner, and finds the best plan. It starts with Sprout & Stem's numbers, which are made up.

Profit per unit

Limits

Each row: use per unit of product 1, use per unit of product 2, amount available.

Every corner

Limits at the best plan

Do it in Excel

Set up the sheet like this (row 1 holds labels):

ABCDE
1Desk PotHanging BasketTotalAvailable
2Units to make00
3Profit per unit49formula
4Hours per unit12formula44
5Soil per unit13formula54
6Pots per unit11formula39
  1. B2 and C2 are the decision variables. Leave them at 0 for now.
  2. In D3 type =SUMPRODUCT(B3:C3,$B$2:$C$2), the total profit. Copy it down to D6 to get hours, soil, and pots used.
  3. Test first. Type 8 in B2 and 6 in C2. D3 should show 86, D4 20, D5 26, and D6 14.
  4. Open Solver from the Data tab. (If it is missing, turn on the Solver Add-in: on Windows, File, Options, Add-ins; on a Mac, Tools, Excel Add-ins.)
  5. Set Objective: D3, To: Max, By Changing Variable Cells: B2:C2.
  6. Click Add. Cell Reference D4:D6, choose <=, Constraint E4:E6. Click OK.
  7. Check Make Unconstrained Variables Non-Negative, choose Simplex LP, and click Solve.
  8. Solver returns 24 in B2, 10 in C2, and 186 in D3. D4 shows 44 and D5 shows 54: both are binding. D6 shows 34, so 5 pots are spare.
  9. In the Solver Results window, pick Sensitivity in the Reports list. The shadow prices are 3 for hours, 1 for soil, and 0 for pots.

Different answer? Check for a limit typed in the wrong direction and a missing $ sign in the SUMPRODUCT formula.

Try it yourself

A candle maker

A candle maker makes tapers (T) and jar candles (J). Each taper earns $3 and uses 1 pound of wax and 3 minutes. Each jar earns $7 and uses 3 pounds of wax and 6 minutes. This week there are 126 pounds of wax and 312 minutes.

1. Which is the objective?

2. Which pair of constraints is right?

3. Is the plan T = 70, J = 18 feasible?

4. The corners are (0, 0), (0, 42), (60, 22), and (104, 0). What is the best profit?

$

Profit at each corner: (0, 0) = $0; (0, 42) = 7 × 42 = $294; (60, 22) = 3 × 60 + 7 × 22 = $334; (104, 0) = 3 × 104 = $312. Best: $334, with 60 tapers and 22 jars. It uses all 126 pounds of wax and all 312 minutes, so both limits are binding. Jars earn more each, yet the best plan is mostly tapers.

Questions to discuss

  1. Name the three parts of a decision model and give a business example of each.
  2. What is a feasible region, and why is it enough to check the corners?
  3. What does it mean for a limit to be binding, and why would a manager want to know?
  4. Describe a real decision you could model this way. Name the objective, two constraints, and the decision variables.

Practice quiz

Score: 0 of 10

An AI assistant can help you set up an optimization model. You keep control of the assumptions: are these the real limits, and is the answer right? If your class has an AI policy, follow it.

It can help with

  • Turning a decision into variables, an objective, and constraints
  • Drafting the Excel Solver setup
  • Explaining which limits end up binding

Always check

  • Do the constraints match the real limits?
  • Plug the answer back into every limit by hand
  • Test the corners yourself

Watch out for

  • A limit typed in the wrong direction
  • Solver finds the best answer inside the model, not in the real world
  • AI can sound sure and still get arithmetic or cell references wrong

Prompts that help you learn

The best prompts make you do the thinking, with AI as a coach.

How to check any AI answer

  1. Compare it with a result you already know, such as the tool on this page.
  2. Test one number yourself with a calculator.
  3. Ask the AI to explain each step. If a step does not make sense, do not use it.
  4. If the AI and your own work disagree, find out why before you trust either one.

Check the AI: a challenge

Give an AI assistant Sprout & Stem's model: maximize 4D + 9H subject to 1D + 2H ≤ 44, 1D + 3H ≤ 54, D + H ≤ 39, and D, H ≥ 0. Ask for the best plan and which limits are binding. Then compare.

Best plan: 24 desk pots and 10 baskets, profit $186. Hours and soil are binding; 5 pots are left over. If the AI says something else, for example that the pots limit is binding, find the step where it went wrong.
1 / 8