Solve graphically the following linear programming problem :
Maximise z=6x+3y,
subject to the constraints
4x+y≥80,
3x+2y≤150,
x+5y≥115,
x≥0,y≥0.
Exam answer
Draw the lines (graph below):
L1:4x+y=80 through (20,0) and (0,80);
L2:3x+2y=150 through (50,0) and (0,75);
L3:x+5y=115 through (115,0) and (0,23).
Why?
Each inequality is first drawn as its boundary line, with the sign replaced by "=". A line is fixed by two points, and the easiest two are where it cuts the axes.
For L1:y=0 gives 4x=80, so x=480=20. And x=0 gives y=80.
For L2:y=0 gives 3x=150, so x=3150=50. And x=0 gives 2y=150, so y=2150=75.
For L3:y=0 gives x=115, and x=0 gives 5y=115, so y=23.
At (0,0):0≥80 is false, 0≤150 is true and 0≥115 is false. So shade away from the origin for L1 and L3, and towards it for L2. With x,y≥0, the feasible region is the shaded triangle. It is bounded.
Why?
To find which side of a line to shade, test a point that is not on it. The origin is the easiest.
If the origin satisfies the inequality, shade the side that contains it. If not, shade the other side.
The feasible region is where all five shadings overlap. It is bounded: it is a closed triangle and does not run off to infinity.
Corner points: L1 and L2 meet at (2,72),L1 and L3 at (15,20),L2 and L3 at (40,15).
Why?
Each corner is where two boundary lines cross, so solve their equations together.
The feasible region (shaded), bounded by L1:4x+y=80,L2:3x+2y=150 and L3:x+5y=115.Corner point(2,72)(15,20)(40,15)z=6x+3y12+216=22890+60=150240+45=285Why?
Work out z=6x+3y at each corner. For example, at (2,72):
Spot it: a rule like x+2y≥10, often with "Minimise Z". The region no longer touches the origin.
Here:4x+y≥80 and x+5y≥115 fail at (0,0), so shade away from the origin for both; only 3x+2y≤150 keeps the origin's side. That leaves a bounded triangle, and the largest table value, 285, is the maximum.