Solve the following Linear Programming Problem graphically:
Maximize Z = 400x + 300y subject to x+y≤200,x≤40,x≥20,y≥0
Exam answer
Draw the lines (graph below):
x+y=200 through (200,0) and (0,200);
Why?
To draw a line, two points are enough. Put x=0 to get y=200, and put y=0 to get x=200.
x=40 and x=20, parallel to the y-axis; y=0 is the x-axis.
x+y≤200 is the side of x+y=200 containing O; x≤40 is on or to the left of x=40;x≥20 is on or to the right of x=20;y≥0 is on or above the x-axis. The feasible region is CDBA (shaded). It is bounded.
Why?
To find the side of a line that an inequality describes, test a point not on the line. O(0, 0) gives 0+0≤200, which is true, so x+y≤200 is the side containing O.
The feasible region is the part of the plane that satisfies all four constraints at once. It is bounded because it fits inside a finite rectangle.
The feasible region CDBA (shaded), with corners C(20, 0), D(40, 0), B(40, 160) and A(20, 180).
Solving the boundary lines in pairs,
x=20,x+y=200x=40,x+y=200⇒y=180⇒y=160Why?
Each corner is where two boundary lines meet. C and D lie on the x-axis, where y=0. A and B lie on x+y=200: put x=20 and x=40 in it.
20+yy40+yy=200=200−20=180=200=200−40=160
The corner points of the feasible region are C(20, 0), D(40, 0), B(40, 160) and A(20, 180).
Corner point method: when the feasible region is bounded, Z has a maximum, and it occurs at a corner point. So we only compare the values of Z at the corners. For example, at B,
Spot it: a rule like x+2y≥10, often with "Minimise Z". The region no longer touches the origin.
Here:x≥20 keeps only the side of x=20 away from the origin, so the region is the closed strip CDBA between x=20 and x=40, under x+y=200. The largest table value, 64000 at (40,160), is the maximum.