Linear programmingIB MYP Maths Extended: Revision notes
Section 1
Forming inequalities
Linear programming starts by choosing variables, such as tables and chairs, and turning each limit in the problem into a constraint (a linear inequality).
- at most, no more than:
- at least, no fewer than:
- fewer than: ; more than: Examples: 'at most 14 people' is ; 'at least 2 adults' is ; 'children at most three times the adults' is . Resource limits add up each item's use: 4 kg of rice per Type A parcel and 2 kg per Type B with 40 kg available gives . Counts cannot be negative, so also write and .
Swapping the variables in a ratio statement. 'Children at most three times the adults' is , not .
Section 2
Graphing an inequality
- Draw the boundary line by changing the inequality to an equals sign. Find two points, such as the axis intercepts: passes through and .
- Use a solid line for or (points on the line are allowed) and a dashed line for or .
- Test a point, usually . For : is true, so shade the side containing the origin. For : is false, so shade the other side. Technology (graphing software) can draw and shade each inequality for you.
Be careful if the line passes through . Then pick a different test point, such as or .
Section 3
The feasible region and its vertices
The feasible region is where all the shaded regions overlap: every point inside satisfies every constraint. Its corners are vertices. Find a vertex by solving the two boundary equations that meet there. For and : from the first, . Substitute: , so , and . The vertex is . The other vertices come from the axes: , , . Check a point is feasible by substituting it into every inequality. fails because .
Test your vertex in both original equations before using it.
Section 4
The objective function and the optimal solution
The objective function is the quantity to maximise (profit, people fed) or minimise (cost, time), such as . The best value always occurs at a vertex of the feasible region. Evaluate the objective function at every vertex and choose the largest (to maximise) or smallest (to minimise). For vertices and : . The maximum profit is \260(6,4)C=2x+3yx+y\ge6x\ge1y\ge1(1,5)(5,1)171313(5,1)$. If an objective line is parallel to an edge, two vertices tie and every point on that edge is optimal.
Choosing the maximum at a point that is not feasible. Only points inside the feasible region count.
Section 5
Solving a real-life problem
- Define the variables. 2. Write the constraints and the objective function. 3. Draw the feasible region (or find its vertices by solving pairs of equations). 4. Evaluate the objective function at each vertex. 5. Write the answer in context. Example: a charity with 40 kg of rice and 36 kg of lentils packs Type A and Type B parcels. The constraints are and , and people fed is . The vertices are , , , , giving . The best plan is 6 Type A and 8 Type B parcels, feeding 62 people. If the variables must be whole numbers, check that the optimal vertex is a whole-number point. If not, test nearby whole-number points inside the region.
Always finish with a sentence in context: 'The charity should pack 6 Type A and 8 Type B parcels.'
That's the notes covered.
Carry on to the next subtopic.
Exam questions on Linear programming
- A minibus carries adults and children. It can carry at most 14 people in total, there must be at least 2 adults, and the number of children can be at most three times the number of adults.Determine whether 5 adults and 9 children can travel in the minibus. Give a reason.2 marks
- A workshop makes tables and chairs each week. The weekly limits are (wood) and (labour hours), with and . The profit is dollars. The feasible region has vertices , and , plus one more vertex where the two boundary lines meet.Show that the point is not in the feasible region.2 marks
- A student investigates how the best choice changes when the objective function changes. The feasible region is defined by , , , and . The objective is to maximise , where is a positive constant.Find the coordinates of the two vertices of the feasible region that lie on the line . Find the maximum value of when , and the vertex where it occurs.3 marks
Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).