Week 12: Project Scheduling & Goal Programming
This week’s big question: when resources and time are limited, which tasks determine the finish date, and which targets should give way?
Before the week
Read: Taylor, Introduction to Management Science (13e), Chapters 8 and 9. The PDFs are in Canvas.
| Pages | Section | This week |
|---|---|---|
| Ch. 8, 380–388 | Project networks and CPM | Monday: precedence, both passes and slack |
| Ch. 8, 400–405 | Project crashing | Price a shorter schedule; respect every path |
| Ch. 9, 443–449 | Goal Programming; Graphical Interpretation | Wednesday: deviations, priority order and competing targets |
| Ch. 9, 450–456 | Computer Solution of Goal Programming Problems | Successive Solver objectives; our lesson also works weighted penalties |
PERT and uncertain durations move to Week 13. Start by reading the project table as dependencies rather than a list to add, then take up the target-versus-constraint distinction.
Session 1: Mon, Nov 9 · Critical path (CPM)
🧩 Puzzle
Launch day at the Apple Store. Apple has announced the day its newest iPhone goes on sale, and no store can move that date. One Apple Store has to be ready when its doors open that morning. Its launch preparation breaks into five project activities (tasks). Some can only start after others finish:
Task Work Duration (days) Must follow A Confirm the launch plan: stock, staffing and pre-order numbers 3 none B Set up the pre-order pickup system 4 A C Prepare the displays and signs 2 A D Rehearse launch day with the pickup system and displays together 5 B, C E Stock the new iPhones and open 2 D What’s the soonest the store can be ready, and which tasks can’t slip a day without pushing that date back? “Just add up the durations” (3+4+2+5+2 = 16) is wrong. B and C run in parallel after A.
Both sessions this week run on this one store. It is a classroom case: the tasks, times, costs and targets are hypothetical.
Build the network before putting times on it
Step 1: place A, then its two immediate successors. The pickup system (B) and the displays (C) both wait for the confirmed plan (A). Neither waits for the other, so draw separate branches. A node is a task; an arrow shows a precedence relationship: “must finish before.”
Step 2: join both branches at D, then add E. The rehearsal uses the pickup system and the displays, so D’s two incoming arrows encode its need for both B and C. The phones go out only after the rehearsal, so E waits for D. The finished project network now represents every row of the precedence table.
Keep this layout while calculating. Durations belong to tasks, not to the connecting arrows. Use day 0 for the project start and one consistent kind of day throughout. Assume enough people and equipment for B and C to run in parallel; a shared resource limit would need additional scheduling work.
Build the skill 1: the forward pass (earliest times)
Use the forward pass to plan the earliest possible schedule: when each task can start, when it can finish, and how soon the whole project can be done. For the store, it tells you how soon the launch preparation can finish and when each team can begin its work.
Work from the start toward the finish. For each task, find when all its predecessors will be done, then add the task’s own duration:
- Earliest start, \(ES\): the latest earliest finish among its predecessors. A task with no predecessors starts at 0. For example, A has no predecessors, so it starts on day 0. D needs both B and C, which finish on days 7 and 5, so it can’t start until the later of the two: \(\max(7,5)=7\).
- Earliest finish: \(EF=ES+\text{duration}\). Start time plus time spent gives finish time. For example, A starts on day 0 and takes 3 days, so its finish is \(EF=0+3=3\). B and C then start on day 3 and finish on days 7 and 5. D starts on day 7 and takes 5 days, so its finish is \(EF=7+5=12\). E runs from day 12 to day 14, so the soonest finish is day 14, not 16: C’s two days overlap with part of B.
Here is the network you sketched. Press Forward pass and each box gets the \(ES\) and \(EF\) you just worked out written above it, with starts in blue and finishes in green, while the readout gives the project’s finish, day 14. Backward pass and Critical path belong to Build the skill 2; come back to them there. Select D in the network to see why its start takes the maximum of B’s and C’s finishes. You can select tasks with the keyboard too. Reset clears the network so you can run it again.
Build the skill 2: the backward pass, slack, and the critical path
Use the backward pass to find how late each task can start and finish while keeping the day-14 finish. If the store starts 14 days before the release date, day 14 is launch day, so these are the task deadlines that protect it. Use them to schedule work and spot delays that threaten the launch. Comparing them with the forward-pass times shows which tasks have room to slip and which need to stay on schedule.
Work from the finish back toward the start:
- Latest finish \(LF\) = the earliest latest start among all of a task’s successors (the project finish, 14, for the last task).
- Latest start \(LS = LF - \text{duration}\).
In the figures, ES/EF mean earliest start/finish and LS/LF mean latest start/finish, all in days from the project start. Starts are blue and finishes are green. Red marks the task worked on in that step.
Step 1: start from the finish just found, day 14. E is the last task, so it must finish by day 14. E takes 2 days, so its latest start is day 12.
Step 2: work back to D. D must finish by the day E must start, day 12. It takes 5 days, so its latest start is day 7.
Step 3: carry D’s deadline to B and C. Both feed D, so both must finish by day 7. B therefore runs no later than days 3–7, while C can run as late as days 5–7.
Step 4: take the earlier deadline at A’s split. B needs A finished by day 3; C needs it by day 5. A must satisfy both, so use the earlier deadline, day 3. That is why the backward pass takes a minimum, whereas D’s forward pass took the maximum of its predecessors’ finishes.
Step 5: compare each task’s two starts. For every task, slack \(= LS - ES\) = how many days it could slip with no effect on the finish. The critical path is the chain of zero-slack tasks: slip any of them and the whole project slips.
In each row below, subtract the earliest start from the latest start, \(LS-ES\). All times and slack are in days. For C, \(5-3=2\): its start can move from day 3 to day 5 without delaying D. You can check the same slack using the two finishes, \(LF-EF\); for C, \(7-5=2\). Subtracting \(EF-ES\) would give the task’s duration, not its slack.
| Task | \(ES\) | \(EF\) | \(LS\) | \(LF\) | Slack: \(LS-ES\) (days) | Critical? |
|---|---|---|---|---|---|---|
| A | 0 | 3 | 0 | 3 | \(0-0=0\) | yes |
| B | 3 | 7 | 3 | 7 | \(3-3=0\) | yes |
| C | 3 | 5 | 5 | 7 | \(5-3=2\) | no |
| D | 7 | 12 | 7 | 12 | \(7-7=0\) | yes |
| E | 12 | 14 | 12 | 14 | \(12-12=0\) | yes |
The critical path is A → B → D → E, length 14 days. Only C has slack (2 days): it could start as late as day 5 and still finish before D needs it. Now press Backward pass on the network above: each box gets its \(LS\) and \(LF\) written below it, the same numbers as the table’s \(LS\) and \(LF\) columns. Then Critical path lights up A, B, D and E, the four tasks with zero slack.
Compare the two complete routes:
| Path | Duration |
|---|---|
| A → B → D → E | \(3+4+5+2=14\) days |
| A → C → D → E | \(3+2+5+2=12\) days |
The longest dependency chain sets the minimum possible project duration. Every task on that chain must wait for the previous one, even when other work finishes earlier.
Slack is calculated for each task, but successive tasks can share the same spare time. Here C is the only task off the critical path and has the two spare days to itself. If C were split into one day of building the displays followed by one day of hanging the signs, each would initially show two days of slack, but the pair could slip only two days in total. Spending both on the displays leaves none for the signs.
How we draw it: AON networks, Gantt charts, and the dummy activity
The box-per-task picture above is an activity-on-node (AON) network: each task is a node (a box) and each arrow is just a precedence link. Taylor also shows the older activity-on-arrow (AOA) style, where the arrow is the task and the nodes are milestone events. The two carry the same information, and Taylor, like Microsoft Project, works mostly in AON, so we do too. Only AOA ever needs a dummy activity: a zero-time arrow that carries no work and exists only to show a precedence relationship. AON never needs one, which is another reason to prefer it.
A Gantt chart puts one horizontal bar per task against a calendar. For this launch, the bars run A 0–3, B 3–7, C 3–5, D 7–12, and E 12–14:
The chart makes B’s and C’s overlap easy to see. The dashed bar is C’s latest position, days 5–7: the same two days of work moved later, not extra work. A plain bar chart makes D’s dependence on both tasks less explicit. Use the network to check dependencies and the bars to communicate timing.
Build the skill 3: buy time by crashing the critical path
Suppose the release date is fewer than 14 days away. Apple will not move it, so the store manager asks what each day saved would cost. Crashing means paying to shorten a task through overtime, an extra contractor, or expedited shipping.
To move the finish date, shorten every path currently setting that date. With one critical path, start with a task on it. Speeding up C alone does nothing, because C already has 2 days of slack.
The bars below add task durations to compare path lengths. Use the Gantt chart above for actual task start times: D waits for both branches and happens only once. Compare each proposed reduction with the original 14-day plan.
Two of the launch tasks can be crashed. A paid installer can cut B, the pickup system, from 4 days to 2 for an extra \$600. Overtime rehearsal shifts can cut D from 5 days to 4 for an extra \$1,200. A, C and E take their normal times whatever you pay. Assume each day within a quote costs the same, so you can buy one of B’s two days separately. The two quotes buy different numbers of days, so compare them per day with the textbook’s crash cost per day = (crash cost − normal cost) / (normal time − crash time), where crash cost minus normal cost is the extra you were quoted. B costs \$600 / 2 = \$300 per day saved and D costs \$1,200 per day saved, so buy B’s days first.
Check both paths (their lengths in days) after every day you buy:
| Day bought | Crash | Cost of the day | A→B→D→E | A→C→D→E | Preparation finishes |
|---|---|---|---|---|---|
| 1st | B: 4→3 | \$300 | 13 | 12 | day 13 |
| 2nd | B: 3→2 | \$300 | 12 | 12 | day 12 |
| 3rd | D: 5→4 | \$1,200 | 11 | 11 | day 11 |
After the first B day, the preparation takes 13 days and C has one day of slack. After the second, both paths take 12 days: C now has zero slack and both paths are critical.
Another reduction to B alone would not move the finish, even if one were available. Imagine reducing B from 2 days to 1: the B path would fall to \(3+1+5+2=11\) days, but the C path would still take \(3+2+5+2=12\) days. D must still wait for C, so the preparation would still finish on day 12. This is a hypothetical check: B’s quote stops at 2 days.
D is shared by both paths and has one day available, so shortening D brings both paths to 11 days. The total extra cost is \$1,800, and these quotes allow no faster finish.
Update every path after each reduction. Shortening a shared task moves several path lengths at once. You cannot generally find the amount of useful crashing by subtracting the two original path lengths. A task’s quoted crash limit can also run out before another path becomes critical.
Try it yourself: start again from the original 14-day plan and shorten D alone from five to four days. What happens to both paths and to C’s slack?
Check the two paths
A → B → D → E becomes 13 days. A → C → D → E becomes 11 days. Both shrink by one, so C still has 2 days of slack. D is on both paths; shortening it does not close their gap.
In practice: the critical path is a snapshot, not a guarantee
- Estimates run optimistic. People quote durations they’d hit on a good day. A network built on rosy numbers gives a rosy finish date: pad with care, not panic.
- The critical path can move. C has only 2 days of slack. If C runs 3 days late, the C path takes 15 days: the finish slips to day 15, and B, not C, is now the task with slack. Watch near-critical tasks, not just the zero-slack ones, and remember crashing creates near-critical tasks, as the table above showed.
- Compare the next day’s cost with its benefit. Here B’s cheaper days run out after two reductions. D is then the only quoted option that shortens both critical paths, and its day costs four times as much. Later reductions can cost more when cheap options run out or several paths need shortening. Buy another day only if its benefit justifies that extra cost.
Back to the puzzle
The launch preparation takes 14 days, not 16, so the store must start at least 14 days before the release date. The tasks that can’t slip a day are A, B, D, and E (the critical path); C is the only one with breathing room (2 days). If the release date is closer than that, the cheapest days are B’s two at \$300 each, which bring the preparation to 12 days; a third day costs \$1,200 on D, because by then the C path is critical too, and 11 days is as fast as the quotes allow.
In-class group practice (wrap-up)
To close Session 1, work a small project network by hand in your group: forward pass, backward pass, slack, the critical path, and one crash decision. The scenario is a campus food-truck pop-up (six tasks, two branches that converge), so you will build and check a new network with the same method.
Write every member’s name on the sheet. You have 15 minutes for the practice, then two minutes to photograph your group’s own attempt before the solutions are shown. One member uploads the photo to Canvas by the end of class; participation credit is for attempting the work.
The instructor uses the final eight minutes to demonstrate the handout’s method, check the main results with units, and explain a common mistake. This demonstration closes the session.
- Download: Week 12 group practice (Word)
Session 2: Wed, Nov 11 · Goal Programming
🧩 Puzzle
The week after launch. With launch day behind it, the same Apple Store must plan a week of help for customers setting up their new iPhones. The manager plans \(x\) setup workshops and \(y\) one-on-one appointments for the week. Workshops meet in the mall’s community room, which the store can book free for 8 hours a week; appointments happen in the store.
One activity Staff hours Customers served Community-room hours Workshop, \(x\) 4 12 2 Appointment, \(y\) 1 1 0 A workshop lasts two hours and needs two staff members, so it uses four staff hours. The manager wants to use all 40 budgeted staff hours, serve at least 80 customers, stay within 8 free room hours, and avoid overtime. Beyond those 8 hours the mall charges rent, and staff can work overtime. Which target should give way when you cannot meet them all?
Use goal programming when a plan must balance several targets that may conflict. It helps you choose the workshop and appointment counts, identify which targets the plan will miss, and explain why those misses are acceptable under the manager’s priorities. The table above tells you what each activity uses and delivers.
These are soft targets: a schedule can miss them because overtime and rented room time are available. A hard constraint is a limit the plan must obey, such as a staffing or room limit that cannot be expanded. Goal programming lets us state which misses matter most before choosing a schedule.
Build the skill 1: measure a plan’s shortfall or overage
Before choosing a schedule, find what it would deliver and how far each result lies from its target. This tells the manager how many budgeted hours would sit unused, how many customers would go unserved, or how much overtime and rented space the plan would need.
Start with 4 workshops and 20 appointments. Multiply each activity count by its requirements, then add:
| Measure | From 4 workshops | From 20 appointments | Actual total | Target and result |
|---|---|---|---|---|
| Staff hours | \(4(4)=16\) | \(20(1)=20\) | 36 hours | \(40-36=4\) unused budgeted hours |
| Customers served | \(4(12)=48\) | \(20(1)=20\) | 68 customers | \(80-68=12\) customers short |
| Room hours | \(4(2)=8\) | \(20(0)=0\) | 8 hours | \(8-8=0\) rented hours |
There is also no overtime: staff use is below 40 hours. Each row adds quantities with the same unit. We do not add the rows together; staff hours, customers and room hours measure different things.
A deviation is the distance below or above a target. The deviation variables name those two distances:
| Symbol | Meaning | Staff-hours example |
|---|---|---|
| \(d^-\) | Undershoot: amount below the target | At 36 hours, \(d^-=40-36=4\) unused budgeted hours |
| \(d^+\) | Overshoot: amount above the target | At 48 hours, \(d^+=48-40=8\) overtime hours |
The superscripts name the two sides of the target. Both deviations are nonnegative amounts. At 36 staff hours, the undershoot is 4 and the overshoot is 0; at 48 hours, they are 0 and 8.
For any row, undershoot is target minus actual, or zero if actual is already at or above the target. Overshoot is actual minus target, or zero if actual is at or below it:
\[d^-=\max(\text{target}-\text{actual},0),\qquad d^+=\max(\text{actual}-\text{target},0).\]The maximum with zero prevents a negative miss. For example, at 48 staff hours, the undershoot is \(\max(40-48,0)=0\), not \(-8\).
Build the skill 2: balance each goal and choose the unwanted side
Skill 1 measured the misses of a plan you already had. To choose a plan, you need one statement that ties every possible plan to its misses.
Start from the balance. A plan that falls short of a target reaches it once you add the shortfall. A plan that goes over reaches it once you subtract the overage. One line covers both cases:
\[\text{actual}+d^- -d^+=\text{target}.\]This is a goal equation; Taylor calls it a goal constraint. Read it as: what the plan delivers, plus what is missing, minus what is extra, equals the target. A plan cannot be under and over the same target at once, so at least one of the two deviations is zero.
Check it on the 40-hour staffing target, with the two cases from Skill 1:
| Actual staff use | What balances it to the 40-hour target? | Goal equation |
|---|---|---|
| 36 hours | Add the 4-hour shortage | \(36+4-0=40\) |
| 48 hours | Subtract the 8-hour overage | \(48+0-8=40\) |
A hard constraint of at most 40 staff hours would reject the 48-hour plan. The goal equation keeps it and records its 8-hour overage, which the manager can then weigh against the other misses.
Write one goal equation for each quantity the store tracks. Replace “actual” with what any schedule delivers. From the puzzle’s table, \(x\) workshops and \(y\) appointments use \(4x+y\) staff hours, serve \(12x+y\) customers and need \(2x\) room hours. Each target gets its own pair of deviations, and the subscript names its unit:
| Target | Actual for any schedule | Goal equation |
|---|---|---|
| 40 staff hours | \(4x+y\) | \(4x+y+d^-_{\text{hours}}-d^+_{\text{hours}}=40\) |
| 80 customers | \(12x+y\) | \(12x+y+d^-_{\text{customers}}-d^+_{\text{customers}}=80\) |
| 8 room hours | \(2x\) | \(2x+d^-_{\text{room}}-d^+_{\text{room}}=8\) |
The counts \(x\) and \(y\) and all six deviations are amounts, so none of them can be negative.
Four goals, three equations. The manager stated four goals, but two of them measure the same quantity. “Use all 40 budgeted staff hours” and “avoid overtime” both compare staff hours with 40. The first looks below the target and the second above it, so the staff-hours equation already carries both: \(d^-_{\text{hours}}\) is the unused budgeted time and \(d^+_{\text{hours}}\) is the overtime. Overtime needs no equation of its own. In the same way, \(d^+_{\text{room}}\) is the rented room time.
Mark the side the manager wants to avoid. Every equation has two deviations, but each goal objects to only one of them. Extra customers are welcome, so the customer goal minds only a shortfall. Room hours below 8 cost nothing, so the room goal minds only an overage.
| Goal | Unwanted direction | Deviation to minimize |
|---|---|---|
| Use at least the 40 budgeted staff hours | Unused budgeted hours | \(d^-_{\text{hours}}\) |
| Serve at least 80 customers | Customers short of 80 | \(d^-_{\text{customers}}\) |
| Use at most 8 free room hours | Room hours above 8 | \(d^+_{\text{room}}\) |
| Use at most 40 staff hours, avoiding overtime | Staff hours above 40 | \(d^+_{\text{hours}}\) |
An at-least goal minimizes its undershoot, \(d^-\). An at-most goal minimizes its overshoot, \(d^+\). These four unwanted deviations are the only amounts the store tries to make small. The other two, customers beyond 80 and free room hours left unbooked, may take any value.
The equations now say what every schedule misses. They do not say which miss matters most, and three schedules are enough to show why the manager has to decide that.
Build the skill 3: compare the misses before setting priorities
Compare schedules to see the decision the manager must make: more overtime, more rental, or fewer customers served. Each picture below places one schedule on the same graph. A point is a schedule: workshops \(x\) across, appointments \(y\) up.
Where the lines come from. Each line marks the schedules that hit one target exactly. It is that target’s goal equation with both deviations set to zero:
| Line | Equation | A schedule on this line |
|---|---|---|
| Staff hours | \(4x+y=40\) | uses exactly 40 staff hours: none unused and no overtime |
| Customers | \(12x+y=80\) | serves exactly 80 customers |
| Room | \(2x=8\), so \(x=4\) | fills exactly the 8 free room hours |
A schedule off a line has a deviation from that target. A red bar marks an unwanted one and shows its size. One appointment is one staff hour and one customer, so a vertical gap to the staff-hours line reads in hours, and a vertical gap to the customer line reads in customers. Each workshop to the right of the room line is 2 rented hours.
Predict the miss before you look at each picture.
1. First try: 4 workshops and 20 appointments. The free room is full. How many budgeted hours stay unused, and how many customers are missing?
The schedule sits on the room line but below both sloped lines: 4 budgeted hours unused and 12 customers short.
2. Add appointments until 80 customers are served: 4 workshops and 32 appointments. How much overtime do the extra appointments need?
It is now on the customer line and the room line, but 8 above the staff-hours line: 8 overtime hours.
3. Add a workshop instead: 5 workshops and 20 appointments. A fifth workshop does the work of twelve appointments. How much room time must be rented?
This schedule sits where the staff-hours and customer lines cross, so it uses exactly 40 hours and serves exactly 80 customers. It is one workshop to the right of the room line: 2 rented room hours.
Side by side, each miss in its own unit:
| Schedule | Unused budgeted staff hours | Customers short | Rented room hours | Overtime hours |
|---|---|---|---|---|
| 4 workshops, 20 appointments | \(40-36=4\) | \(80-68=12\) | \(8-8=0\) | 0: below 40 hours |
| 4 workshops, 32 appointments | 0: above 40 hours | \(80-80=0\) | \(8-8=0\) | \(48-40=8\) |
| 5 workshops, 20 appointments | \(40-40=0\) | \(80-80=0\) | \(10-8=2\) | \(40-40=0\) |
Each entry is an unwanted deviation: undershoot for budgeted hours and customers, overshoot for rental and overtime.
Why can no schedule meet every target? Meeting both staffing goals means sitting on the staff-hours line. In the pictures, that line stays below the customer line until the two cross at 5 workshops, one past the room line. The arithmetic says the same. Stay inside the free room and inside 40 staff hours, and the store serves at most 72 customers:
| Step | Calculation | Result |
|---|---|---|
| Workshops the free room allows | \(8/2\) | 4 workshops |
| What those workshops use and give | \(4(4)\) and \(4(12)\) | 16 staff hours, 48 customers |
| Staff hours left for appointments | \(40-16\) | 24 appointments, 24 customers |
| Customers served | \(48+24\) | 72, eight short of 80 |
Fewer workshops only make it worse. A workshop serves 12 customers in 4 staff hours; the same 4 hours of appointments serve 4. Trading one workshop for appointments loses 8 customers: 3 workshops and 28 appointments serve only 64.
At least one target must give way. The numbers cannot say which one: that is the manager’s judgment.
Build the skill 4: protect goals in priority order
One way to state that judgment is a strict ranking. Use preemptive goal programming when the manager wants to protect one goal before improving another. It finds the best result for the first goal, keeps that achievement, then improves the next. This is also called lexicographic order: the first priority is considered before the next, as the first letter sorts words before their later letters.
The manager chooses this order:
| Priority | Protect this goal | Minimize | Practical consequence |
|---|---|---|---|
| P1 | Use all 40 budgeted staff hours | \(d^-_{\text{hours}}\) | Avoid idle budgeted time before improving lower goals |
| P2 | Serve at least 80 customers | \(d^-_{\text{customers}}\) | Put serving customers ahead of room or overtime savings |
| P3 | Stay within 8 free room hours | \(d^+_{\text{room}}\) | Accept overtime if needed to keep workshops in the free room |
| P4 | Avoid overtime | \(d^+_{\text{hours}}\) | Reduce overtime as far as the first three achievements allow |
The priority notation records that sequence:
\[\min\;\big(P_1d^-_{\text{hours}},\;P_2d^-_{\text{customers}},\;P_3d^+_{\text{room}},\;P_4d^+_{\text{hours}}\big).\]Read it from left to right as four decisions made one after another. P1 to P4 are ranks, not numbers to multiply by.
An earlier goal always wins over a later one. A schedule that saves overtime (P4) by leaving customers unserved (P2) is rejected, however many hours it saves, because P2 is settled before P4 is considered.
Keep each achievement before moving to the next
Take the four decisions in order on the graph from Skill 3, now drawn up to 85 appointments so that the whole customer line shows. Each step asks one question: how small can this priority’s unwanted deviation be without giving back what the earlier steps achieved? Shading marks every schedule still in the running. The top and right edges are only the viewing window, not additional resource limits.
Step 1 (P1): leave no budgeted hours unused. Minimize \(d^-_{\text{hours}}\). Zero is possible: any schedule that uses at least 40 staff hours leaves none unused. Keep every schedule with \(4x+y\ge40\), on or above the staff-hours line. That is still a large set. It says nothing yet about overtime, which waits for P4.
Step 2 (P2): serve at least 80 customers. Among the schedules kept, minimize \(d^-_{\text{customers}}\). Zero is possible again: 5 workshops and 20 appointments, from Skill 3, use 40 staff hours and serve 80 customers. So also keep \(12x+y\ge80\). The shaded schedules now lie on or above both lines. Meeting the customer target does not release the staff-hours requirement.
Step 3 (P3): stay inside the free room. Among those, minimize \(d^+_{\text{room}}\). Zero is still possible: 80 appointments and no workshops would need no room at all, at the price of 40 overtime hours. So also keep \(2x\le8\), which is \(x\le4\). The shading shrinks to the schedules at or left of the room line. Many schedules remain, and every one of them meets the first three goals.
Step 4 (P4): find the least overtime in what is left. Overtime is staff hours above 40, so look for the shaded schedule that uses the fewest staff hours. Schedules with equal staff hours lie on a line parallel to the staff-hours line. Slide that line upward from 40 hours until it first touches the shaded region. It touches at the region’s lowest corner, where the room line meets the customer line:
\[x=4,\qquad 12(4)+y=80,\qquad y=80-48=32.\]The corner is 4 workshops and 32 appointments. It uses \(4(4)+32=48\) staff hours, so the least overtime the first three goals allow is \(d^+_{\text{hours}}=48-40=8\) hours.
Why does the corner with the most workshops need the least overtime? A workshop serves 12 customers in 4 staff hours, while 12 appointments take 12. Dropping one workshop and adding 12 appointments still serves 80 customers but adds 8 staff hours, so every move left along the customer line means more overtime.
The four decisions keep achievements, not any one schedule:
| Decision | Best unwanted deviation | Requirement kept for the later decisions |
|---|---|---|
| P1: unused budgeted time | 0 hours | Use at least 40 staff hours: \(4x+y\ge40\) |
| P2: missing customers | 0 customers | Also serve at least 80: \(12x+y\ge80\) |
| P3: rented room time | 0 hours | Also use at most 8 room hours: \(2x\le8\), or \(x\le4\) |
| P4: overtime | 8 hours | None is needed: the schedule is 4 workshops and 32 appointments |
A tempting change that fails. Eight overtime hours invite a shortcut: cut the appointments from 32 to 24, and staff use falls to \(4(4)+24=40\) hours with room use still at 8. But the store then serves \(12(4)+24=72\) customers, 8 short of the target that P2 protects. On the graph, (4,24) drops below the customer line and out of the shaded region. P2 is settled before P4, so the schedule with no overtime loses.
The same order ranks a list of schedules. When you are handed a few schedules instead of a graph, take the priorities one at a time. At each one, keep only the schedules with the smallest unwanted deviation. A schedule that drops out stays out, whatever it would have scored later:
| Unwanted deviation, in priority order | (4,20) | (4,24) | (4,32) | (5,20) |
|---|---|---|---|---|
| P1: unused budgeted hours | 4: out | 0 | 0 | 0 |
| P2: customers short | 12 | 8: out | 0 | 0 |
| P3: rented room hours | 0 | 0 | 0 | 2: out |
| P4: overtime hours | 0 | 0 | 8: chosen | 0 |
At P1, only (4,20) leaves budgeted hours unused, so it is out. At P2, (4,24) is 8 customers short: out. At P3, (5,20) rents 2 room hours: out. That leaves (4,32), the corner the graph found, with its 8 overtime hours. None of the three rejected schedules has any overtime, yet none of them reaches P4.
Run the four decisions in Excel Solver
Solver works on one objective at a time, so it takes the four decisions as four runs. Each run minimizes one unwanted deviation. Before the next run, you add a constraint that holds the value just achieved, as each step on the graph kept the earlier requirement. If Solver is not yet enabled, follow Week 8’s illustrated setup guide.
Build the sheet. Click Copy for Excel, then paste into A1 on a blank worksheet, or download the ungraded demo workbook. The copied formulas are live. Row numbers and column letters stay on this page.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Workshops, x | ||||||
| 2 | Appointments, y | ||||||
| 3 | |||||||
| 4 | Goal | Actual | Under, d- | Over, d+ | Actual + under - over | Target | |
| 5 | Staff hours | =4*B1+B2 | =B5+C5-D5 | equal to | 40 | ||
| 6 | Customers | =12*B1+B2 | =B6+C6-D6 | equal to | 80 | ||
| 7 | Room hours | =2*B1 | =B7+C7-D7 | equal to | 8 |
- Changing cells B1:B2 and C5:D7 hold the schedule and the six deviations. They start empty; Solver chooses all eight.
- Actual cells B5:B7 compute what a schedule delivers: staff hours, customers and room hours.
- Balance cells E5:E7 are the left sides of the three goal equations. Solver must make each one equal its target in G5:G7.
Test the balance before Solve. Enter the first try: 4 in B1 and 20 in B2. B5:B7 read 36, 68 and 8. With the deviation cells empty, E5:E7 read 36, 68 and 8 as well, so the first two rows do not reach their targets. Now enter that schedule’s misses from Skill 1: 4 in C5 and 12 in C6. E5:E7 become 40, 80 and 8, matching G5:G7. The deviations are what make each row balance. Clear B1:B2 and C5:D7 before solving.
Run 1: minimize the unused budgeted hours. Search for Solver (use Help search on a Mac), then enter these settings:
| Solver field | Run 1 |
|---|---|
| Set Objective | C5; choose Min |
| By Changing Variable Cells | B1:B2,C5:D7 |
| Subject to the Constraints | E5:E7 = G5:G7 |
| Other settings | Make Unconstrained Variables Non-Negative; Simplex LP |
To enter the two changing ranges, select B1:B2, then hold Ctrl (Command on a Mac) and select C5:D7. Simplex LP fits because every formula is linear in the changing cells. Select Solve, then Keep Solver Solution. C5 reads 0: no budgeted hours need to go unused.
Runs 2 to 4: hold the achievement, then change the objective. Reopen Solver. Select Add, enter the value the last run achieved and select OK. Then set the next objective and solve again:
| Run | Add this constraint first | Set Objective, choose Min | Solver’s result |
|---|---|---|---|
| 2 | C5 = 0 | C6, customers short | C6 = 0 |
| 3 | C6 = 0 | D7, rented room hours | D7 = 0 |
| 4 | D7 = 0 | D5, overtime hours | D5 = 8 |
Earlier constraints stay in the list, so by Run 4 Solver holds all three achievements while it reduces the overtime:
Read the answer after Run 4. B1:B2 show 4 workshops and 32 appointments. Row 5 shows 48 staff hours with D5 = 8 overtime hours. Rows 6 and 7 show 80 customers and 8 room hours with no deviation.
Three habits keep the runs correct:
- Hold the deviation, not the schedule. Never fix B1:B2 between runs. During Runs 1 to 3 many schedules tie, and B1:B2 can show any one of them; the schedule is settled only by Run 4.
- Hold the achieved value, not an assumed zero. Here the first three runs all reach 0. In another problem a run may stop at 3, and then the constraint to add is
= 3. - Priorities are not coefficients. P1 to P4 never appear in a cell. The order of the runs carries them.
Build the skill 5: change the priority order and explain the consequence
The four decisions chose 4 workshops and 32 appointments, with 8 overtime hours. That answer belongs to the order the manager set: the free room ahead of overtime. Change the order to test a different judgment, then report what the new plan gains and what it gives up. The activity table, the targets and the goal equations stay as they are.
Suppose the manager would rather rent room time than ask staff to work overtime. Keep P1 and P2, and swap the last two priorities:
| Priority | Original order | New order |
|---|---|---|
| P1 | Use all 40 budgeted staff hours: \(d^-_{\text{hours}}\) | Unchanged |
| P2 | Serve at least 80 customers: \(d^-_{\text{customers}}\) | Unchanged |
| P3 | Stay within 8 free room hours: \(d^+_{\text{room}}\) | Avoid overtime: \(d^+_{\text{hours}}\) |
| P4 | Avoid overtime: \(d^+_{\text{hours}}\) | Stay within 8 free room hours: \(d^+_{\text{room}}\) |
Take the four decisions again, on the graph from Skill 3.
Steps 1 and 2 do not change. P1 and P2 are the same goals in the same places, so they keep the same schedules as before: those on or above both the staff-hours line and the customer line.
Step 3 (new P3): avoid overtime. Among those schedules, minimize \(d^+_{\text{hours}}\). Zero is possible: 6 workshops and 16 appointments would use exactly 40 staff hours and serve 88 customers, at the price of 4 rented room hours. So also keep \(4x+y\le40\). Step 1 already keeps \(4x+y\ge40\), and the two together leave only the schedules that use exactly 40 staff hours: those on the staff-hours line. P2 still applies, so the part of that line below the customer line is out. What remains is the thick segment in the picture.
Step 4 (new P4): rent as little room time as possible. Minimize \(d^+_{\text{room}}\). Rented time is 2 hours for each workshop to the right of the room line, so look for the remaining schedule with the fewest workshops: the left end of the thick segment. That is the smallest number of workshops that serves 80 customers in exactly 40 staff hours. Find it one step at a time:
| Step | Calculation | Result |
|---|---|---|
| Spend all 40 hours on appointments | \(40(1)\) | 40 customers, 40 short of 80 |
| Replace 4 appointments with one workshop | \(12-4\) | 8 more customers in the same 4 hours |
| Workshops needed to close the gap | \(40/8\) | 5 workshops |
| Staff hours left for appointments | \(40-4(5)\) | 20 appointments |
The left end is 5 workshops and 20 appointments, where the staff-hours line crosses the customer line. It needs \(2(5)=10\) room hours, so the least rent the first three goals allow is \(d^+_{\text{room}}=10-8=2\) hours. Zero rent is out of reach: every remaining schedule has at least 5 workshops, one more than the free room holds.
The same list, ranked in the new order. Take the four schedules from Skill 4 and swap the last two rows:
| Unwanted deviation, in the new order | (4,20) | (4,24) | (4,32) | (5,20) |
|---|---|---|---|---|
| P1: unused budgeted hours | 4: out | 0 | 0 | 0 |
| P2: customers short | 12 | 8: out | 0 | 0 |
| P3: overtime hours | 0 | 0 | 8: out | 0 |
| P4: rented room hours | 0 | 0 | 0 | 2: chosen |
The first two rows are as before, so (4,20) and (4,24) drop out at the same places. At P3, (4,32) has 8 overtime hours and (5,20) has none: (4,32) is out. That leaves (5,20), with its 2 rented hours. No number in the table changed. Two rows traded places, and the chosen schedule changed with them.
Report what the change gains and what it costs:
| Result | Original order: room before overtime | New order: overtime before room |
|---|---|---|
| Workshops and appointments | 4 and 32 | 5 and 20 |
| Customers served | 80 | 80 |
| Total staff hours | 48 | 40 |
| Room hours needed | 8 | 10 |
| Rented room hours | 0 | 2 |
| Overtime hours | 8 | 0 |
Both plans serve 80 customers and use every budgeted hour. The new order removes all 8 overtime hours and pays for it with 2 rented room hours. Which plan is better is not a calculation: it depends on which miss the manager minds more.
A strict order answers that question all one way. With the room ranked first, the store accepts 8 overtime hours to avoid 2 rented hours, and the ranking would accept any number of them. With overtime first, it is the other way round. Neither order asks how much of one miss is worth how much of the other.
Build the skill 6: price a trade-off within one priority level
Use penalty rates when the manager is willing to trade one kind of miss against another: some rented room time for less overtime, or the reverse. The manager states how serious an hour of each miss is, and the schedule with the smaller total penalty wins.
Put the two goals on one level. P1 and P2 stay as they are. Rental and overtime now share Priority 3:
| Priority | Goal | Minimize |
|---|---|---|
| P1 | Use all 40 budgeted staff hours | \(d^-_{\text{hours}}\) |
| P2 | Serve at least 80 customers | \(d^-_{\text{customers}}\) |
| P3 | Stay within 8 free room hours and avoid overtime | One penalty that counts \(d^+_{\text{room}}\) and \(d^+_{\text{hours}}\) together |
Inside Priority 3 this is weighted goal programming, also called non-preemptive because neither of the two goals is settled before the other. Only those two trade off. P1 and P2 are still settled first, in order.
State a rate for each miss. Suppose the manager assigns 2 penalty points per rented room hour and 1 penalty point per overtime hour. The points are a stated judgment about inconvenience, not dollars. At these rates, one rented hour counts as much as two overtime hours. Taylor calls the rates weights, which gives the method its name.
Multiply each rate by its hours of deviation, then add the two products. Only schedules that pass P1 and P2 are compared. In the list from Skill 4, (4,20) is out at P1 and (4,24) at P2, as before. That leaves the two schedules from Skill 5:
| Contribution | 4 workshops, 32 appointments | 5 workshops, 20 appointments |
|---|---|---|
| Rented room: 2 points/hour × rented hours | \(2(0)=0\) | \(2(2)=4\) |
| Overtime: 1 point/hour × overtime hours | \(1(8)=8\) | \(1(0)=0\) |
| Total penalty, in points | 8 | 4 |
At these rates, 5 workshops and 20 appointments has the smaller penalty. The fifth workshop rents 2 room hours, which costs 4 points, and removes 8 overtime hours, which saves 8. In the picture, rented room time is blue and overtime is orange.
Why only these two schedules? The shading holds every schedule that keeps P1 and P2. For any number of workshops, the best of them has the fewest appointments that still keep both goals, because one more appointment only adds an hour of overtime. Follow that best schedule as workshops are added:
| Workshop added | Best schedule moves | What changes | Worth it? |
|---|---|---|---|
| Up to the 4th | (3,44) to (4,32) | 8 overtime hours go; the room is still free | Always |
| The 5th | (4,32) to (5,20) | The last 8 overtime hours go; 2 room hours are rented | Depends on the two rates |
| The 6th and later | (5,20) to (6,16) | 2 more room hours are rented; no overtime is left to cut | Never |
Only the fifth workshop pays something to gain something, so the choice is between (4,32) and (5,20).
A low penalty cannot buy back an earlier goal. (4,24) rents nothing and has no overtime, so its penalty would be 0, lower than both. So would the penalty of (4,20). Neither is in the comparison. (4,20) leaves budgeted hours unused and (4,24) leaves 8 customers unserved, and P1 and P2 are settled before any penalty is computed.
In symbols, Priority 3 minimizes the penalty for any schedule:
\[\min\;\big(P_1d^-_{\text{hours}},\;P_2d^-_{\text{customers}},\;P_3(2d^+_{\text{room}}+1d^+_{\text{hours}})\big).\]Read it as three decisions: P1, then P2, then the penalty. P1 to P3 are still ranks. The 2 and the 1 are numbers, and they do multiply.
Build the skill 7: find the penalty rate where the choice changes
The 2-to-1 rates are a judgment, and the manager may not be sure of them. Find the room rate at which the two schedules tie, and you know how far that judgment can move before the recommendation changes.
Hold the overtime rate at 1 point per overtime hour and let the room rate change. Call it \(r\) points per rented hour, with \(r>0\). The two schedules and their misses stay fixed, so each penalty is Skill 6’s calculation with \(r\) in place of 2:
| Plan | Room penalty | Overtime penalty | Total penalty |
|---|---|---|---|
| 4 workshops, 32 appointments | \(r(0)=0\) | \(1(8)=8\) | 8 |
| 5 workshops, 20 appointments | \(r(2)=2r\) | \(1(0)=0\) | \(2r\) |
The first total never changes, because that plan rents nothing. The second grows by 2 points for every point added to the room rate.
The choice switches where the two totals are equal. Find that rate one operation at a time:
| Operation | Calculation | Meaning |
|---|---|---|
| Set the two penalties equal | \(8=2r\) | Neither plan has the smaller penalty |
| Divide by the two rented hours | \(r=8/2=4\) | At 4 points, a rented hour weighs exactly as much as the overtime it replaces |
Read the 4 as an exchange. The fifth workshop rents 2 room hours and removes 8 overtime hours, so one rented room hour replaces four overtime hours. Renting is the better choice as long as the manager counts a rented hour as less serious than four overtime hours.
| Room rate; overtime stays at 1 | Penalty for 4 workshops, 32 appointments | Penalty for 5 workshops, 20 appointments | Preferred plan |
|---|---|---|---|
| 2 points/hour | 8 | \(2(2)=4\) | 5 workshops, 20 appointments |
| 4 points/hour | 8 | \(4(2)=8\) | Tie |
| 5 points/hour | 8 | \(5(2)=10\) | 4 workshops, 32 appointments |
Below 4, rent for the fifth workshop. Above 4, stay inside the free room and accept the overtime. The manager’s rate of 2 sits well below 4, so the recommendation holds unless a rented hour comes to count for more than four overtime hours. When a stated rate sits close to the tie, report both schedules and what each one costs.
Try it yourself: set the room rate to 3 points per rented hour and keep overtime at 1 point per hour. Which schedule do you recommend, and what target does it miss?
Check your calculation
Four workshops and 32 appointments costs \(3(0)+1(8)=8\) points. Five workshops and 20 appointments costs \(3(2)+1(0)=6\). Recommend 5 workshops and 20 appointments, with 2 rented room hours and no overtime. The first two goals stay protected.
In practice: explain whose target may give way
Every answer in this session rested on something the manager supplied: which targets can bend, the order of the goals, and the penalty rates. Question each one before you recommend a schedule.
- Establish what can bend. Rental and overtime make the store’s targets soft. If the manager cannot authorize either, keep those limits hard and acknowledge that 80 customers cannot be served within them.
- Make the priority order explicit. Room before overtime gives 4 workshops and 32 appointments. Overtime before room gives 5 and 20. If serving customers comes last, after budgeted-hour use, no overtime and free-room use, the best plan is 4 and 24: only 72 customers, eight short.
- “Most satisfactory” still means an optimum under the stated rules. Taylor uses satisficing for a solution that meets conflicting goals as well as their priorities allow. Report the protected goals and the remaining miss, rather than claiming all goals were met.
- Question constant penalty rates. A rate of one point per overtime hour treats the eighth hour like the first. Staff fatigue in the week after a launch, or a customer whose old phone has stopped working, may make some misses more serious. State the assumption, then test plausible priority orders and rates before recommending a plan.
- Keep workshop and appointment counts whole. At the 4-to-1 tie, a mix such as 4.5 workshops and 26 appointments scores the same 8 points as the two whole schedules, and half a workshop cannot run. Require whole numbers in the model instead of rounding the answer: 4 workshops with those 26 appointments would serve only 74 customers.
Back to the puzzle
Under the manager’s original priority order, recommend 4 workshops and 32 appointments. This serves 80 customers, uses the 8 free room hours, and uses all 40 budgeted staff hours plus 8 overtime hours. Overtime gives way because it is the lowest priority.
Put avoiding overtime ahead of avoiding rental, or put them at one level with the 2-to-1 penalty rates, and recommend 5 workshops and 20 appointments. That serves 80 customers in 40 staff hours but needs 2 rented room hours. The manager’s judgment determines which consequence the store accepts.
Session 2 quick review
| Concept | What it does | Store example |
|---|---|---|
| Soft target | Sets a target that may be missed | Room time beyond 8 hours can be rented |
| Hard constraint | Rules out a plan that violates it | Nonnegative activity counts are required |
| Undershoot, \(d^-\) | Measures how far actual performance is below a target | 36 staff hours leaves 4 budgeted hours unused |
| Overshoot, \(d^+\) | Measures how far actual performance is above a target | 48 staff hours means 8 overtime hours |
| Goal equation | Balances actual + undershoot − overshoot to the target | \(36+4-0=40\) staff hours |
| Unwanted deviation | Names the side to minimize | Missing customers uses \(d^-\); rented room time uses \(d^+\) |
| Preemptive priority | Protects an earlier goal’s best achievement before optimizing the next | Protect the room before reducing overtime |
| Weighted goal programming | Trades misses at one level using stated penalty rates | Two rented hours cost 4 points at a rate of 2 |
| Sensitivity to penalties | Finds when another rate changes the preferred plan | Rental and overtime plans tie at a 4-to-1 rate |
| Most satisfactory solution | Minimizes misses under the chosen rules, even if a goal remains unmet | The original priorities leave 8 overtime hours |
After-class check
Check deviations, protected priorities, weighted penalties, precedence, slack and crashing. Retry freely; nothing is submitted.
Weekly take-home (graded: submit on Canvas)
Help a county elections office compare staffing plans against its targets, then schedule its election preparation. Write the unwanted deviations, compare priority orders and penalty rates, build the precedence table from the brief, and find the critical path and a costed crash plan. Complete the model, two short responses and the AI-use disclosure in one workbook. Upload the .xlsx to Canvas by Sunday Nov 15 at 11:59 PM.
Workbook updated Wed Nov 11, before class. Its brief now letters the project tasks A to E and uses new penalty rates. If you downloaded it before Wednesday’s class, download it again.