Back to the on-screen lesson ·

Models that stretch the language

Transportation, blending and scheduling models; ratios that are linear after all; and what infeasible means.

Paper packet. Every task here also exists on screen, where it is checked automatically; answers written on paper are not assessed by Nydus. When you are back at a device, enter your answers there.

1. What you will learn

By the end of this lesson you will be able to recognise the production, diet, transportation and scheduling shapes and predict how many variables and rows each needs, turn a ratio or a percentage requirement into a linear row by multiplying out, name the requirements that need a binary variable instead, and say what an infeasible result means and what could repair it.

2. What you already have

You can write a small model and put it into standard form. This lesson widens the range of problems you can reach with the same four questions, and marks the edge where the language stops.

3. Three standard models

A transportation model ships from sources to destinations, with one variable per route, supply rows and demand rows. An assignment model is a transportation model where everything is one unit. A blending model mixes inputs to meet composition requirements, and its rows are percentages multiplied out.

4. The models worth recognising, and the edge of the language

Most linear programs met in practice are one of a handful of shapes. Production mix: one variable per product, one row per resource. Diet or blending: one variable per ingredient, one row per nutrient or specification, mostly $\ge$. Transportation: one variable per route, one row per supply and one per demand. Scheduling with overlapping shifts: one variable per shift pattern, one row per hour covered. Recognising the shape tells you how many variables and rows to expect before you write any of them.

Two pieces of English look non-linear and are not. A ratio — chairs at most $30\%$ of output — multiplies out to $0.7x - 0.3y \le 0$. A maximum bounded above — $\max(x, y) \le 10$ — splits into two rows. One piece of English looks harmless and is not: a cost paid once, which jumps and needs a binary.

And a model may have no feasible plan at all. That is an answer about the constraints, not a failure of the solver, and the repair is always to enlarge the feasible region.

Another way: steps

  1. Ask which standard shape this is.
  2. Count the variables and rows the shape predicts.
  3. Multiply out any ratio or percentage.
  4. Flag anything that jumps: it needs unit 5.

Another way: picture

A transportation model drawn as a grid: shops down the side, warehouses across the top, one cell per route. Each row must add to at least its demand and each column to at most its supply, and every cell belongs to exactly one row and one column.

5. Where this usually goes wrong

A ratio is abandoned as non-linear before it is multiplied out, and a jump is written as if it were a rate. The third error is treating infeasibility as a bug: the model is re-run, the tolerances are loosened, and the contradiction stays exactly where it was.

6. A blending row that looks non-linear

  1. 'Ingredient A is at most $30\%$ of the blend' reads as $\dfrac{a}{a + b} \le 0.3$, which is a ratio of variables.

    As written, outside the language.

  2. Multiply both sides by $a + b$, which is positive: $a \le 0.3a + 0.3b$.

    Clear the denominator.

  3. Collect: $0.7a - 0.3b \le 0$. Linear, and it says exactly what the original did.

    Linear after all.

7. Your turn: 'at least twice as much A as B' as a linear constraint

  1. The English says $a \ge 2b$.

    Read the comparison.

  2. Your turn: work this step out. Its working is at the end of the packet.

    Collect it into standard shape: $a - 2b \ge 0$, or $-a + 2b \le 0$.

8. Guided practice

A plan ships to three shops from two warehouses. Shop A receives $8$ and $6$; shop B receives $5$ and $2$; shop C receives $3$ and $9$. Fill in what each shop receives in total.

From warehouse 1From warehouse 2Received in total
Shop A86
Shop B52
Shop C39

9. Guided practice

A workshop with $30$ hours of labour is being modelled. Which of these requirements needs a binary variable rather than a linear constraint?

10. Guided practice

Goods move from $3$ warehouses to $6$ shops, and the plan decides how much goes along each route. How many decision variables is that?

Answer:

11. Practice

You are given a described decision with $5$ products. Put the steps of formulating it into the order you do them.

Number the steps in order (write the number in the box):

12. Practice

A workshop makes $x$ chairs and $y$ tables and has $50$ hours of labour. Match each requirement to the constraint that says it.

$3x + 2y \le 50$$x + 2y \ge 8$$x = 2y$$0.7x - 0.3y \le 0$
At most $50$ hours of labour
At least $8$ units of protein
Twice as many chairs as tables
Chairs are at most $30\%$ of the output

13. Somewhere new

A diet model comes back infeasible: no plan satisfies every constraint. Select every action that could make it feasible.

This task has no paper form; do it on a device.

14. Lesson test

Lesson test: one question per skill, one attempt each, no hints. Your answers are checked when you submit.

15. Test question

A plan ships to three shops from two warehouses. Shop A receives $2$ and $7$; shop B receives $5$ and $7$; shop C receives $4$ and $7$. Fill in what each shop receives in total.

From warehouse 1From warehouse 2Received in total
Shop A27
Shop B57
Shop C47

16. What you can do now

You can recognise the standard model shapes, turn ratio requirements into linear rows, and read an infeasible result as a statement about the constraints. Say in your own words why running the solver again cannot repair infeasibility.

Working for the steps left to you

7. Your turn: 'at least twice as much A as B' as a linear constraint, step 2