Linear Programming: Turning a Problem in Words into Inequalities | OCR A Level Further Maths notes
Free preview: Linear Programming: Turning a Problem in Words into Inequalities
Linear Programming: From a Story to Maths
Year 1 (AS) for OCR A, where it is in the AS list (7.06). AQA and Edexcel do not mark AS content in their specifications, so check your own specification for when it is taught.
Let's start with a small business problem. A workshop makes chairs and tables. Wood, carpentry time and storage space are all limited. Chairs are quick to make but earn little; tables earn more but take longer. How many of each should it make each week to earn the most profit?
- You could guess: "make lots of tables". But then you run out of carpentry hours, or space.
- You could try every combination. With two products that is slow; with real businesses it is impossible.
- We need a method that finds the best plan while respecting every limit. That method is linear programming.
What the words mean
- Linear programming (LP) is a method for finding the best value of a quantity (biggest profit, smallest cost) when there are limits on what you can do.
- Those limits are called constraints.
- Linear means every expression is of the form : numbers times variables, added. No squares, no products like , no .
- Programming here means planning (an old word for a schedule), not computer code.
- Before you can solve anything, you must formulate the problem: turn the story into maths. Exams give real marks for this step alone, and this note is all about it.
The three parts of every LP formulation
| Part | What it is | How you write it |
|---|---|---|
| Decision variables | The quantities you are free to choose. | "Let x be the number of chairs made per week." Say exactly what, with units and time period. |
| Objective function | The expression you want to make as big or as small as possible. | "Maximise P = ..." or "Minimise C = ..." |
| Constraints | One inequality for each limit in the story. | Each inequality on its own line, with a label. Include the non-negativity constraints . |
💡 In plain words
- Variables: what you choose.
- Objective: what you want to make biggest or smallest.
- Constraints: what stops you.
The recipe: formulating an LP
- Read the whole story and find what can be chosen. Why: those become your variables. Usually they are "how many of each".
- Define each variable in words, with units and a time period. Why: "x = chairs" is vague; "x = number of chairs made per week" is a mark.
- Find what is being maximised or minimised and write it in terms of the variables. Why: that is the objective function.
- Go through the story sentence by sentence. Each number that limits you gives one constraint. Why: working line by line stops you missing one.
- Add non-negativity, and say if the variables must be whole numbers. Why: the maths does not know you can't make −3 chairs.
- Tidy each constraint: integer coefficients, simplest form. Why: it is neater to draw and examiners expect it.
👀 Watch me do it: formulate the workshop problem
A chair needs 2 hours of carpentry, a table 3 hours, and there are 24 carpentry hours a week. There is space to store at most 10 items. The number of tables must be at most twice the number of chairs. Profit is £20 on a chair and £50 on a table.
| What I write | Why I do it |
|---|---|
| Let x be the number of chairs and y the number of tables made each week. | Step 1 and 2: these are the things the workshop chooses. Units (items) and time period (per week) stated. |
| Maximise | Step 3: each chair earns £20, so x chairs earn 20x. Same idea for tables. |
| (carpentry) | x chairs use 2 hours each, so 2x hours. y tables use 3y hours. Together they can't exceed 24. |
| (storage) | The total number of items is x + y. "At most" means . |
| (ratio) | "Tables at most twice chairs": tables on the small side, twice the chairs on the big side. |
| Step 5: non-negativity. Every LP needs it. |
Put together, the full formulation reads:
- Notice the labels in brackets. Writing what each constraint means is good practice and helps you check you have them all.
- Notice also: every number in the story (2, 3, 24, 10, twice, 20, 50) appears somewhere. That is a quick check that nothing was missed.
✏️ YOUR TURN 1
Try this first:
A farmer plants x hectares of wheat and y hectares of barley. She has 50 hectares of land. Wheat needs 3 days of labour per hectare and barley 2 days; she has 120 days of labour. Profit is £400 per hectare of wheat and £300 per hectare of barley. Formulate the LP.
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in Linear Programming
- Linear Programming: Turning a Problem in Words into Inequalities
- Linear Programming: Feasible Regions, Objective Lines and Vertex Testing
- Linear Programming: Integer Solutions and Changing the Objective
What's inside for this topic
3 teacher notes, 70 practice questions, 49 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Next note: Linear Programming: Feasible Regions, Objective Lines and Vertex Testing
All OCR A Level Further Maths topics · A Level Further Maths