Practice: Constrained Optimization

Recognition · Classification

A bakery decides how many loaves and how many cakes to bake tomorrow. Ovens allow at most 9 hours of baking; a loaf takes 15 minutes, a cake 40. Loaves sell for 3, cakes for 7.

Which of the following is a decision variable?

1 hint available, least help first.

Hint 1: Retrieval cue

Ask which of these the bakery gets to decide, rather than being told or working out.

Direct application

A workshop builds c chairs and t tables. A chair takes 3 hours of labour and 2 metres of timber; a table takes 5 hours and 4 metres. There are 120 labour hours and 80 metres of timber available, and the workshop cannot build a negative number of either product.

Select every constraint of the corresponding linear program.

Select every option that applies

Every option that applies, and only those. The set is checked as a whole.

Interpretation

A workshop builds two products. Each chair yields \$40 of profit and each table \$65. The workshop wants the most profitable production plan it can manage within its labour and timber limits.

Select every statement that correctly states the objective of the corresponding linear program.

Select every option that applies

Every option that applies, and only those. The set is checked as a whole.

Classification · Explanation

For each situation, state the decision variables, the objective and its direction, and the constraints.

(a) A haulier has three lorries and must deliver to five depots today. Each lorry costs a different amount per kilometre, each depot must be visited once, and no lorry may drive more than 400 km. The haulier wants the cheapest schedule.

(b) A student has 20 hours before three exams. Each hour spent on a subject raises the expected mark in it, with diminishing returns, and each exam has a pass threshold that must be met. The student wants the highest total mark.

For one of the two, name a quantity mentioned in the description that is not a decision variable, and say why.

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

Ask first what the decision maker actually gets to set. Everything else follows from that.

Hint 2: Strategy cue

A quantity you would have to compute after the decisions are made is not a decision variable. Check whether it belongs in the objective or in a constraint.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) Decision variables: which depots each lorry visits, equivalently the assignment of depots to lorries and the route taken. Objective: minimize total cost, maximize nothing. Constraints: every depot visited exactly once; each lorry's distance at most 400 km; three lorries available. (b) Decision variables: hours allocated to each of the three subjects. Objective: maximize total expected mark. Constraints: hours sum to at most 20; each subject's expected mark at least its pass threshold; hours nonnegative.

Not a decision variable: in (a), total cost. It is determined once the routes are fixed, and it is what the objective measures. In (b), the expected mark in a subject is determined by the hours allocated, so it is not something the student sets directly; it appears in the objective and in the pass-threshold constraints.

A complete answer does each of these:

  • variables are choices
  • objective with direction
  • constraints identified

Error diagnosis · Explanation

A student writes:

A courier must deliver 12 parcels using vans that each hold at most 5 parcels and cost 30 per van sent out. Let C be the total cost. Minimise C subject to all 12 parcels being delivered.

This formulation cannot be solved as written. Say precisely what has gone wrong, and rewrite it correctly.

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

Ask what the courier actually decides.

Hint 2: Next step

Check whether each named variable could be written down before the others are known. One of them cannot.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

The fault is that C is not a decision variable. Total cost is determined once the courier decides how many vans to send; it cannot be chosen independently, so there is nothing for the constraints to act on and no quantity to vary.

Correctly: let v be the number of vans sent out. Minimise 30 v subject to 5 v ≥ 12 and v ≥ 0 integer. Cost now appears where it belongs, as the objective computed from the decision.

A complete answer does each of these:

  • variables are choices
  • objective with direction
  • constraints identified
Practice data

Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.