Constraints: inequalities in two variables
Constraints: inequalities in two variables
A carpentry workshop makes tables and chairs.
A table takes 3 hours of work, and a chair – one hour.
The workshop’s carpenters have 60 hours of work a week.
How many tables and how many chairs should it make a week? To answer, each quantity to be decided gets a name:
- – the number of tables a week;
- – the number of chairs a week.
and are the problem’s variables. Each pair is a production plan: – 10 tables and 20 chairs. The branch of mathematics that looks for the best plan within limits like these is called linear programming.
In the plan the work takes hours: 3 hours for each table and an hour for each chair.
The carpenters cannot work more than 60 hours, so
A condition like this is called a constraint: a limit every plan must keep, written as an inequality in the two variables.
- “At most”, “no more than” – the sign .
- “At least”, “no fewer than” – the sign .
- The number of products is not negative: and . These are constraints too, in every problem of this kind.
To check a plan, substitute it in the constraint:
| Plan | Hours of work | ? |
|---|---|---|
| yes | ||
| yes – exactly all the hours | ||
| no – 5 hours short |
On the graph board all the points that satisfy are shaded.
- The line is the boundary line: the plans that use all 60 hours. It passes through and .
- Below the line – plans that leave hours free, like .
- Above the line – plans that need more than 60 hours, like .
The reason: the constraint is . For each number of tables , the point on the line is the greatest number of chairs that can be added, and every smaller fits too. The part of the plane on one side of a line is called a half-plane.
This is how to draw a constraint like :
- The boundary line, , passes through two points on the axes: when , ; when , .
- Choose a point not on the line, usually , and substitute: – true.
- So shade the side of the line where is.
In an inequality with or the points on the boundary line are not solutions, so the line is dashed.
A bakery bakes cakes and pies.
A cake takes the oven for 2 hours, and a pie for one hour.
The oven is free for 24 hours a week.
is the number of cakes a week, and the number of pies.
Write the constraint of the oven’s hours on the graph board.
Can the bakery bake 8 cakes and 10 pies in a week?
Work out how many oven hours they need, and write the answer.
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
A half-plane is shaded on the graph board, and the points and are on its boundary line.
Write the inequality of the half-plane.
A clothes shop orders shirts and trousers.
A shirt costs the shop 50 ₪, and a pair of trousers 100 ₪.
The budget for the order is at most 3,000 ₪.
The supplier sends an order of at least 20 items.
is the number of shirts, and the number of pairs of trousers.
Write the two constraints on the graph board.
Check the plans and : which of them keeps both constraints?
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power