Words into inequalities
Name the variables, write Z, and turn every limit into a linear inequality.
From the story to the maths
Let x be the number of tables and y the number of chairs. The dealer has Rs 50,000; a table costs Rs 2500 and a chair Rs 500.
The money condition becomes …
What this lesson covers
The idea
Name the decision variables, write the objective function to maximise or minimise, and translate every limit in the problem into a linear inequality, adding the non-negative constraints.
From the story to the maths
Let x be the number of tables and y the number of chairs. The dealer has Rs 50,000; a table costs Rs 2500 and a chair Rs 500.
The money condition becomes …
- 2500x + 500y ≤ 50000
- 2500x + 500y ≥ 50000
- x + y ≤ 50000
Switch on the conditions
Switch the constraints on one at a time and watch the allowed plans (green) shrink. x ≥ 0 and y ≥ 0 are always on.
Formulating the problem
1. Name the decision variables: x tables, y chairs, with x ≥ 0, y ≥ 0. 2. Write the objective function: maximise Z = 250x + 75y. 3. Turn each limit into a linear inequality: 2500x + 500y ≤ 50000, i.e. 5x + y ≤ 100 (money), and x + y ≤ 60 (storage).
So: maximise Z = 250x + 75y subject to 5x + y ≤ 100, x + y ≤ 60, x ≥ 0, y ≥ 0.
“At most” gives ≤ and “at least” gives ≥.
Notes
Variables (≥ 0) → objective function Z → one linear inequality for each limit. Dealer: maximise Z = 250x + 75y; 5x + y ≤ 100, x + y ≤ 60, x, y ≥ 0.
Check yourself
“Storage for at most 60 pieces” becomes …
2500x + 500y ≤ 50000 is the same constraint as …
How much money does the plan of 10 tables and 50 chairs use (in Rs)?
Answer: 50000
25000 + 25000 = 50000: all of it. 10 + 50 = 60 also fills the storage.
- x + y ≥ 60. “At most” means no more than 60: ≤.
- x + y = 60. He may store fewer than 60.
- x + y ≤ 60 — correct. Yes! Tables and chairs together are at most 60.
- 5x + y ≤ 100 — correct. Yes! Divide every term by 500.
- x + 5y ≤ 100. 2500 ÷ 500 = 5 goes with x, not y.
- 5x + y ≤ 10. 50000 ÷ 500 = 100, not 10.