# Solve the following Linear Programming Problems graphically: Maximise $Z = 3x + 4y$ . subject to the constraints : $$x + y \leq 4, x \geq 0, y \geq 0.$$

Toolbox:
• One we graphically plot the area bounded by the constraints, it’s easy to see which points satisfy all constraints. This common region determined by all the constraints including non-negative constraints of a linear programming problem is called the $\textbf{Feasible Region (or solution region)}$.
• Now, any point in the feasible region that gives the optimal value (maximum or minimum) of the objective function is called an $\textbf{Optimal Solution}$. We see that every point in the feasible region satisfies all the constraints, and there are infinitely many points.
• Since we know from theory that the optimal value must occur at a corner point (vertex) of the feasible region, calculate the objective function values associated with the coordinates of all the extreme points. This method is called the $\textbf{Corner Point Method}$.
We are asked to maximize: $Z = 3x+4y\;\;(1),\;$ given the following constraints:
$(2)\quad x+4 \leq 4$
$(3) \quad x \geq 0$
$(4) \quad y \geq 0$
To solve a Linear Programming problem graphically, first plot the constraints for the problem. This is done by plotting the boundary lines of the constraints and identifying the points that will satisfy all the constraints.
$\textbf{Plotting the constraints}$:
The boundary of the first constraint is represented by the straight line defined by the equation:
$(2)\quad x+4 \leq 4$
If we can find any two points on this line, the entire line can be plotted by drawing a straight line through these points.
If x = 0, we can see from the equation that y = 4. Thus the point (0,4) must fall on this line. Similarly, if y = 0, we can see from the equation that x = 4. Thus the point (4,0) must fall on this line.
Plot these two points on the graph, and connect them to form the straight line representing the equation (5): x + y = 4.
Note that the graph actually extends beyond the x and y axes as shown in the figure. However, we can disregard the points beyond the axes because we have the constraints x ≥0, y ≥0 and the values assumed by x and y cannot be negative.
Since there are no other constraints, let us arrive at the feasible region.
$\textbf{Identifying the Feasible Region}$:
The line connecting the points (0,4) and (4,0) satisfies the equality x + y = 4. But recall that the first constraint in the problem is the inequality x + y ≤ 4.
Thus, after plotting the boundary line of a constraint we must determine which area on the graph corresponds to the feasible solutions for original constraint. This can be done very easily by picking an arbitrary point on either side of the boundary and checking where it satisfies the original constraint.
For example, if we test the point (0, 0), we see that it satisfies the first constraint, i.e., 0 + 0 = 0 ≤ 4. Therefore, the area of the graph must be on the same side of the boundary line as the point (0,0).
As this area satisfies all the constraints in our model, this is our feasible region. As shown in the figure, this is the region bounded by OAB (0,0), (0,4) and (4,0).
$\textbf{Solving the objective function using the Corner Point Method}$:
Recall that any point in the feasible region that gives the optimal value (maximum or minimum) of the objective function is called an optimal solution. We see that every point in the feasible region satisfies all the constraints, and there are infinitely many points.
We know that the solution will always occur at a point in the feasible region where two or more boundary lines intersect (corner points or vertex).
Since we are asked to maximize the objective function, all we need to do is solve the objective function at the corner points and choose the corner or vertex that gives us the maximum value. This can be easily summarized in a table as follows:
Corner Point Z = 3x + 4y
O (0,0) Z = 0
A (0,4) Z = 16 (Maximim Value)
B(4,0) Z = 12
$\textbf{The maximum value of Z is 16 which occurs at the point (4,0)}$.

edited Apr 16, 2013