Solve each of the following linear programming problems by graphical method.

Minimize Z = x - 5y + 20


Subject to :


x - y ≥ 0


- x + 2y ≥ 2


x ≥ 3


y ≤ 4


x, y ≥ 0

Given,


Objective function is: Z = x - 5y + 20


Constraints are:


x - y ≥ 0


- x + 2y ≥ 2


x ≥ 3


y ≤ 4


x, y ≥ 0


First convert the given inequations into corresponding equations and plot them:


x - y ≥ 0 x = y (corresponding equation)


Two coordinates required to plot the equation are obtained as:


Put, x = 0 y = 0 (0,0) - - - - first coordinate.


Put, y = 1 x = 1 (1,1) - - - - second coordinate


Join them to get the line.


As we know, Linear inequation will be a region in the plane, and we observe that the equation divides the XY plane into 2 halves only, so we need to check which region represents the given inequation,


If the given line does not pass through origin then just put (0,0) to check whether inequation is satisfied or not. If it satisfies the inequation origin side is the required region else the other side is the solution.


Similarly, we repeat the steps for other inequation also and find the common region.


- x + 2y ≥ 2 - x + 2y = 2 (corresponding equation)


Two coordinates required to plot the equation are obtained as:


Put, x = 0 y = 1 (0,1) - - - - first coordinate.


Put, y = 0 x = - 2 ( - 2,0) - - - - second coordinate


x = 0 is the y - axis and y = 0 is the x - axis


x = 3 and y = 4 are lines parallel to y - axis and x - axis respectively.



Hence we obtain a plot as shown in figure:


The shaded region in the above figure represents the region of a feasible solution.


Now to maximize our objective function, we need to find the coordinates of the corner points of the shaded region.


We can determine the coordinates graphically our by solving equations. But choose only those equations to solve which gives one of the corner coordinates of the feasible region.


Solving x - y = 0 and x = 3 gives (3,3)


Similarly, solve other combinations by observing graph to get other coordinates.


From the figure we have obtained coordinates of corners as:


(3,3) (4,4) (6,4),


Now we have coordinates of the corner points so we will put them one by one to our objective function and will find at which point it is maximum.


Z = x - 5y + 20


Z at


Z at (3,3) = 3 – 5×3 + 20 = 8


Z at (4,4) = 4 - 5×4 + 20 = 4


Z at (6,4) = 6 – 5×4 + 20 = 6


We can see that Z is minimum at (4,4) and min. value is 4


Z is minimum at x = 4 and y = 4 ; and min value is 4


14