The objective function and the best plan
The objective function and the best plan
The workshop makes a profit of 400 ₪ on every table and 150 ₪ on every chair.
The profit from the plan is
This function is called the objective function: it gives each plan the number you want to make greater – here the profit. In a problem of cost you want to make it smaller.
The workshop’s feasible region is a quadrilateral with four corner points. We work out the profit at each of them:
| Corner point | The plan | The profit |
|---|---|---|
| nothing | 0 ₪ | |
| 40 chairs | ₪ | |
| 10 tables and 30 chairs | ₪ | |
| 20 tables | ₪ |
The best plan: 10 tables and 30 chairs a week, at a profit of 8,500 ₪.
All the plans that give the same profit lie on one line. On the graph board, the feasible region and two dashed lines:
- , that is – the plans with a profit of 6,000 ₪;
- , that is – the plans with a profit of 8,500 ₪.
- All the lines of equal profit are parallel: they all have the same slope, . Only the number on the right changes.
- A greater profit – the line moves up, parallel to itself.
- The greatest profit is that of the last line that still touches the feasible region. It touches it at a corner: at the corner point .
So in linear programming the greatest value of the objective function, and the least one too, is always at one of the corner points, and it is enough to work it out there.
A linear programming problem is solved in five steps:
- Choose variables: and – the quantities to be decided.
- Write the constraints, and , too.
- Draw the feasible region.
- Find the corner points – on the graph or by a system of equations of two boundary lines.
- Work out the objective function at each corner point, and choose the greatest value (a profit) or the least (a cost).
The corner points of the feasible region of the bakery from the last lesson: , , and .
is the number of cakes a week, and the number of pies.
The bakery makes a profit of 30 ₪ on a cake and 20 ₪ on a pie.
Work out the profit at the point .
/ – 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
Work out the profit at the point .
/ – 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
Work out the profit at the point .
/ – 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
How many cakes and how many pies should the bakery bake a week? What is the profit?
/ – 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
/ – 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
/ – 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
The prices have changed, and now the bakery makes a profit of 50 ₪ on a cake and only 10 ₪ on a pie.
The constraints have not changed, and so neither have the corner points.
Work out the profit at each corner point.
What is the best plan now?
/ – 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
/ – 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 school is organising a trip for at least 240 pupils.
A coach has 60 seats, and a minibus 20.
The transport company has only 8 drivers free, one driver to each vehicle.
A coach costs 2,000 ₪, and a minibus 600 ₪.
is the number of coaches, and the number of minibuses.
Write the constraint of the seats and the constraint of the drivers on the graph board.
On the graph board, the boundary lines: – the seats, and – the drivers (the dashed one).
The feasible region is a triangle. Mark its three corner points.
Write the objective function – the cost of the transport – and work it out at each corner point.
How many coaches and how many minibuses should the school order? What will the transport cost?
/ – 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
/ – 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
/ – 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
/ – 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