Maximize Z = 3x + 4y, subject to the constraints are x + y ≤ 4, x ≥ 0 and y ≥ 0.
Our problem is to maximize Z = 3x + 4y ..............(i)
Subject to constraints x + y ≤ 4 ..............(ii)
x ≥ 0 and y ≥ 0 ..............(iii)
Firstly, draw the graph of the line x + y = 4
x04y40
Putting (0, 0) in the inequality x + y ≤ 4, we have
0 + 0 ≤ 4 ⇒ 0 ≤ 4 (which is true)
So, the half plane is towards the origin, Since, x, y ≥ 0
So, the feasible region lies in the first quadrant.
∴ Feasible region is OABO.
The corner points of the feasible region are O(0, 0), A(4, 0) and B(0, 4). The values of Z at these points are as follows:
Corner pointZ=3x+4yO(0, 0)0A(4, 0)12B(0, 4)16 →Maximum
Therefore, the maximum value of Z is 16 at the point B(0, 4).
Note While plotting the graph, please be careful about the inequalities in which direction we have to plot this.