Lecture 30 — Optimization Formulations

Position in the course

This is lecture 30 of 32. It belongs to the course arc described in the course outline and uses the standard interactive case method: display, attempt (5 minutes), discuss, reveal, name the technique.

Learning objectives

By the end of this lecture students can do all three under time pressure, which is what the four cases exercise.

Prerequisite knowledge

Before this lecture: Lectures 23 and 20 — greedy/DP and search spaces

Assumed fluencies:

Preparation task: Express your weekly study plan as: maximise marks subject to 20 hours.

Detailed topic outline

Core (mandatory):

  1. objectives, constraints, decisions
  2. formulating before solving
  3. LP-flavoured formulations
  4. integer constraints and their difficulty

Extension (optional enrichment):

  1. search heuristics for hard instances
  2. verifying a claimed optimum

Case sequence

CaseTitleDifficulty
cs-117The Poster BudgetBeginner
cs-118The Shift ScheduleFoundational
cs-119The Knapsack TwinsIntermediate
cs-120The Exam SeatingExpert

Display each case full-screen from the student page (cases cs-117–cs-120); instructor pages cs-117–cs-120 under case-studies/instructor/ hold the full solutions, reveal guides, and discussion prompts.

Timing plan (120 minutes)

MinutesSegment
0–10Framing: where this fits; recall of the previous lecture
10–30Case 1 (cs-117): 5-minute attempt, then discussion and reveal
30–50Case 2 (cs-118): same rhythm
50–70Case 3 (cs-119): same rhythm, harder case
70–75Break
75–100Case 4 (cs-120): same rhythm, hardest case
100–115Synthesis: name the techniques; misconceptions check
115–120Exit questions, homework, next-lecture preview

Timing flexes with the room: if a case ignites the class, let the discussion run and compress the synthesis; if the attempts stall, harvest partial attempts rather than extending the clock.

Worked examples

Instructor demonstration to open the lecture: Poster budget (cs-117): extract objective, constraints, and decisions in three colours before any algorithm is mentioned.

Classroom activities

#ActivityMinutesFormat and prompt
1Formulation trio8Three word problems become objective/constraints/decisions triples; no solving allowed yet.
2Constraint elimination7cs-118's schedule is attacked by eliminating infeasible assignments first.
3Optimum verification5A claimed optimum is challenged: bound argument vs exhaustive check — both are valid.

Board plan

Instructor explanation notes

Reading the room. Optimisation is taught as formulation first: most real difficulty is saying precisely what 'best' means. Solution methods stay light; verification of optimality is the depth.

Running the reveal. The greedy-fails-DP-works contrast from lecture 23 is re-invoked; students should feel the continuum from heuristic to formulation.

Lecture focus. One sentence to repeat verbatim: Formulate precisely before you compute anything.

Common misconceptions

Each case's instructor page lists the specific wrong turn to expect; the reveal should address it by name.

Student practice exercises

Core:

  1. Write the poster-budget formulation (cs-117): objective, decisions, constraints in three lines.
  2. List infeasible assignments for the shift schedule (cs-118) before any search.
  3. Verify a claimed optimum for cs-119's small instance by exhaustive check.

Enrichment (optional):

Formative assessment

Exit questions (choose one; answer on a card in 60 seconds):

  1. Name the three parts of a formulation. Expected: decisions, objective, constraints
  1. Why is 'minimise cost' often incomplete? Expected: unstated service/quality constraints make it meaningless — cs-118
  1. How do you verify a claimed optimum? Expected: bound argument or exhaustive check on a reduced instance

Cards are skimmed before the next lecture; three answers become the framing. Persistent wrong answers route students to the review stations of lecture 16 or to office hours.

Homework and preparation

Learning-outcome mapping

Differentiation