Solve each of the following linear programming problems by graphical method.
Solve the following linear programming problem graphically :
Minimize z = 6x + 3y
Subject to the constraint
4x + y ≥ 80
x + 5y ≥ 115
3x + 2y ≤ 150
x ≥ 0, y ≥ 0
Matching exercise
Match the items on the right to the items on the left.
Step - 1
Step - 2
Step - 3
Step - 4
Step - 5
Step - 6
Given,
z = 6x + 3y
Constraints:
4x + y ≥ 80
x + 5y ≥ 115
3x + 2y ≤ 150
x ≥ 0, y ≥ 0
First convert the given inequations into corresponding equations and plot them:
4x + y ≥ 80 → 4x + y = 80 (corresponding equation)
Two coordinates required to plot the equation are obtained as:
Put, x = 0 ⇒ y = 80 (0,80) - - - - first coordinate.
Put, y = 0 ⇒ x = 20 (20,0) - - - - 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 + 5y ≥ 115 → x + 5y = 115 (corresponding equation)
Two coordinates required to plot the equation are obtained as:
Put, x = 0 ⇒ y = 23 (0,23) - - - - first coordinate.
Put, y = 0 ⇒ x = 115 (115,0) - - - - second coordinate
3x + 2y ≤ 150 3x + 2y = 150 (corresponding equation)
Two coordinates required to plot the equation are obtained as:
Put, x = 0 ⇒ y = 75 (0,75) - - - - first coordinate.
Put, y = 0 ⇒ x = 50 (50,0) - - - - second coordinate
x = 0 is y - axis and y = 0 is the x – axis.
Hence, we have the following plot:
The shaded region in the above figure represents the region of a feasible solution.
Now to minimize 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 + 5y = 115 and 3x + 2y = 150 gives (40,15)
Similarly solve other combinations by observing graph to get other coordinates.
From the figure we have obtained coordinates of corners as:
(15,20),(40,15) and (2,72)
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 = 6x + 3y
∴ Z at (15,20) = 6× 15 + 3×20 = 150
Z at (40,15) = 6×40 + 3×15 = 285
Z at (2,72) = 6×2 + 10×72 = 732
Z is minimum at x = 15, and y = 20 and the minimum value is 150