A factory makes two products — formulate and solve the LP problem graphically

easy 3 min read

Question

A factory manufactures two products A and B. Product A requires 2 hours of machine time and 1 hour of labour. Product B requires 1 hour of machine time and 2 hours of labour. Available machine time is 100 hours and labour time is 80 hours per week. Profit on A is ₹50 and on B is ₹40. Formulate and solve the LP problem graphically to maximize profit.

Solution — Step by Step

Let xx = number of units of Product A produced per week

Let yy = number of units of Product B produced per week

Since we cannot produce negative quantities: x0x \geq 0, y0y \geq 0 (non-negativity constraints)

Machine time constraint: 2x+y1002x + y \leq 100 (A uses 2 hours, B uses 1 hour; max 100 hours)

Labour constraint: x+2y80x + 2y \leq 80 (A uses 1 hour, B uses 2 hours; max 80 hours)

Objective function (maximize profit): Z=50x+40yZ = 50x + 40y

The feasible region is defined by all four constraints. Find the vertices (corner points):

Corner 1: Origin (0,0)(0, 0)

Corner 2: xx-intercept of machine constraint: 2x=100x=502x = 100 \Rightarrow x = 50. Point: (50,0)(50, 0)

Corner 3: yy-intercept of labour constraint: 2y=80y=402y = 80 \Rightarrow y = 40. Point: (0,40)(0, 40)

Corner 4 (intersection of the two lines):

2x+y=1002x + y = 100 … (i)

x+2y=80x + 2y = 80 … (ii)

From (i): y=1002xy = 100 - 2x. Substitute in (ii): x+2(1002x)=80x + 2(100 - 2x) = 80

x+2004x=803x=120x=40x + 200 - 4x = 80 \Rightarrow -3x = -120 \Rightarrow x = 40

y=10080=20y = 100 - 80 = 20. Point: (40,20)(40, 20)

Corner pointZ=50x+40yZ = 50x + 40y
(0,0)(0, 0)00
(50,0)(50, 0)50×50=250050 \times 50 = 2500
(0,40)(0, 40)40×40=160040 \times 40 = 1600
(40,20)(40, 20)50×40+40×20=2000+800=280050 \times 40 + 40 \times 20 = 2000 + 800 = 2800

Maximum Z=2800Z = \text{₹}2800 at (40,20)(40, 20)

Why This Works

The fundamental theorem of linear programming: the maximum (or minimum) of a linear objective function over a convex feasible region always occurs at a corner (vertex) of the region. This is because a linear function increases uniformly in one direction — it will be maximized at the extreme boundary, which for a polygon is always a corner.

We never need to check interior points — only the finitely many corners.

Answer: Produce 40 units of A and 20 units of B per week for maximum weekly profit of ₹2800.

Common Mistake

Students sometimes forget to check ALL corner points, or they include only the intercepts of one constraint. The optimal solution frequently occurs at the intersection of two constraint lines (like (40,20)(40, 20) here), not at an axis intercept. Always find all corners: origin, both axis intercepts, and ALL intersection points of pairs of constraint lines that fall within the feasible region.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next