Linear Programming
Objective function, linear constraints, graphical half-planes, feasible regions, corner-point theorem & special LPP cases.
Topic 12.2: Objective Function Z = ax + by, Linear Constraints & Decision Variables
x) and chairs (y)! She only has ₹50,000 in cash and 60 square metres of storage space, yet she wants to earn the highest possible profit! Turning a real-world "best profit or lowest cost within limits" puzzle into clean straight-line algebra is called Linear Programming (LPP)!x, y (always non-negative: x ≥ 0, y ≥ 0!)Z = ax + by (a, b constants) to Maximise or Minimise!Optimal Solution: feasible point giving best
Z!x, y appears ONLY to power 1 — no x², no xy, no 1/x anywhere!x) and juice packs (y) to pack; Constraints = weight & budget limits; Objective Function Z = total yummy happiness to maximise!- 1Decision Variables (
x, y): Unknown non-negative quantities we control. - 2Objective Function (
Z = ax + by): The linear target formula we want to Maximise (profit) or Minimise (cost). - 3Linear Constraints + Non-Negativity: System of inequalities (
≤or≥) PLUSx ≥ 0, y ≥ 0restricting everything to Quadrant I!
| LPP Term | Plain Meaning | Furniture Shop Example |
|---|---|---|
| Decision Variables | What we decide to produce/buy | x tables, y chairs |
| Objective Function | Target score Z = ax + by | Maximise profit Z = 250x + 75y |
| Constraints | Limited money, time, or space | 5x + y ≤ 100, x + y ≤ 60 |
| Non-negativity | Cannot make negative items! | x ≥ 0, y ≥ 0 |
x ≥ 0, y ≥ 0 at the bottom of your LPP formulation! Without them, negative tables or negative chairs become "legal", letting the shaded region spill out of Quadrant I and costing you 1 mark in Kerala DHSE exams!Topic 12.2.1: Translating Real-Life Business & Diet Problems into Constraints
≤! Whenever it says "minimum requirement" or "at least", write ≥! Put everything into a tidy 2-column table, and the inequalities practically write themselves!≤!≥!x, y) as columns and resources/nutrients as rows — read across!≤; Demand Floor (vitamins, daily target) = ≥!x and Item y, fill in numbers row-by-row (Cost row, Time row, Vitamin row), and attach ≤ or ≥ to the right-hand limit!- 1Identify
x, y: Ask "What two items am I choosing how many/how much to make or buy?" - 2Write Objective
Z: Spot profit per unit (Maximise) or cost per unit (Minimise). - 3Build One Inequality Per Limit: Match units carefully (all minutes or all hours; all ₹ or all kg!).
- 4Tack on
x ≥ 0, y ≥ 0: Always finish with non-negativity!
Mix
x kg of Food P (₹60/kg) & y kg of Food Q (₹80/kg) so cost is minimum. Food P has 3 units/kg Vitamin A & 5 units/kg Vitamin B; Food Q has 4 units/kg Vitamin A & 2 units/kg Vitamin B. Daily need: at least 8 units Vit A and 11 units Vit B.• Minimise Cost:
Z = 60x + 80y• Vit A ("at least 8"):
3x + 4y ≥ 8 | Vit B ("at least 11"): 5x + 2y ≥ 11 | x ≥ 0, y ≥ 0!
≤ and ≥: "Diet must contain at least 8 units" means ≥ 8 (you can have MORE than 8, not less!). (2) Unit mismatch: Machine A takes 30 minutes while availability is 4 hours — convert 4 hours = 240 minutes FIRST so both sides speak the same unit!Topic 12.2.2: Graphical Plotting of Half-Planes & Feasible Region Shading
x + 2y ≥ 10 acts like a straight security fence slicing the graph sheet into two halves — one "allowed half-plane" and one "forbidden half-plane"! Draw every fence cleanly using just two intercepts, send the point (0, 0) as your scout to check which side passes, and the glowing overlap in Quadrant I is your Feasible Region!≤/≥ by =. Set x=0 (get y-intercept) & y=0 (get x-intercept) — join with a SOLID line!(0, 0) into inequality:TRUE → shade toward (0, 0) | FALSE → shade away from (0, 0)!
x ≥ 0, y ≥ 0 forces shading strictly into the first quadrant (top-right)!(0, 0), test (1, 0) or (0, 1) instead!3x + 4y ≤ 24) allows the side containing (0, 0) because 0 ≤ 24 is TRUE. Fence 2 (x + 2y ≥ 10) blocks (0, 0) because 0 ≥ 10 is FALSE — so it pushes outward away from (0, 0)! Where BOTH fences agree in Quadrant I sits your Feasible Region!- 1Draw Boundary Lines: Find
(a, 0)and(0, b)for each equation and draw a solid line (because≤and≥include the boundary!). - 2Test One Side: Plug
(0, 0)into each inequality (or(1, 0)if the line hits(0, 0)likex − y ≤ 0). - 3Shade ONLY Common Intersection: Draw small arrows on each line first, then cleanly shade ONLY the common region satisfying ALL constraints!
x + 2y ≥ 10 and 3x + 4y ≤ 24 (x, y ≥ 0).• Line 1 (
x + 2y = 10): meets axes at (10, 0) & (0, 5). Test (0,0): 0 ≥ 10 is FALSE → shade AWAY from (0,0).• Line 2 (
3x + 4y = 24): meets axes at (8, 0) & (0, 6). Test (0,0): 0 ≤ 24 is TRUE → shade TOWARD (0,0).• Common region in Quadrant I is the crisp triangle with vertices
(0, 5), (4, 3), (0, 6)!
(0, 0) on a line passing through the origin like x − 2y ≥ 0 (or x ≤ y)! Plugging (0,0) gives 0 ≥ 0 — completely useless for picking a side! Pick (1, 0) or (5, 0) instead! (2) Never draw dashed lines for constraints — LPP constraints always use ≤ or ≥ (solid lines!).Topic 12.2.2: Corner-Point Method & Fundamental Theorem of LPP
Z = 4x + y?! Relax! Slide a straight ruler representing Z = 4x + y across the polygon — the LAST place it touches before leaving is ALWAYS one of the sharp Corner Points (Vertices)!Z = ax + by MUST occur at a corner point (vertex) of the feasible region!Z are 100% guaranteed to exist!(x,y) | Z table → 4. Pick Max/Min!Z = ax + by, and crown the winner!- 1Find All Vertices: Read axis intercepts directly from your graph and solve simultaneous equations ONLY for interior intersections where two boundaries cross!
- 2Build the Corner-Point Table: List every corner
A, B, C, ...alongside its exactZ = ax + byvalue. - 3State the Conclusion Clearly: Write BOTH the optimal value of
ZAND the exact point(x, y)where it occurs!
Maximise
Z = 4x + y subject to x + y ≤ 50, 3x + y ≤ 90, x ≥ 0, y ≥ 0.• Line 1 meets axes at
(50, 0), (0, 50); Line 2 at (30, 0), (0, 90). Both shade toward (0,0).• Intersection of
x + y = 50 and 3x + y = 90: subtract → 2x = 40 ⇒ x = 20, y = 30.• Corner-Point Table (Bounded Region):
(0, 0) → Z = 0 | (30, 0) → Z = 120 (MAX!) | (20, 30) → Z = 110 | (0, 50) → Z = 50.• Answer: Maximum value of
Z is 120 at the point (30, 0)!
(0, 90) is the y-intercept of 3x + y = 90, yet it violates x + y ≤ 50 (90 > 50) — so it is NOT a corner of the feasible region! Always verify every vertex satisfies ALL constraints!Topic 12.2.2: Bounded vs Unbounded Feasible Region (Open Half-Plane Test)
≥ constraints, creating an Unbounded feasible region that stretches endlessly outward! Suppose your corner-point table gives a smallest value m = 7 (or m = −300). Careful — since the region runs off to infinity, could some faraway point drop EVEN LOWER than m?! You MUST run one extra detective check: draw the dashed Open Half-Plane ax + by < m!Unbounded: stretches to
∞ (extra test REQUIRED!).m: graph ax + by < m (dashed!).For Max with largest corner
M: graph ax + by > M!ANY overlap → NO optimal solution!
ax + by < m as a DASHED challenger line! If the challenger touches the feasible region anywhere, your corner loses — NO minimum exists!m as the reigning champion! In a bounded room, no outsider exists. In an unbounded open field running to infinity, we send a challenger zone ax + by < m (strict inequality → dashed line!). Does ANY part of that challenger zone step onto the feasible field? If NO → champion m wins! If YES → someone out toward infinity beats m forever, so NO minimum exists!- 1Compute Corner Table First: Identify smallest corner value
m(for Minimise) or largestM(for Maximise). - 2Draw Dashed Line
ax + by = m: Test a sample point (e.g.(0, 0)) to shade the strict open half-planeax + by < m(or> M). - 3Check Overlap with Feasible Region: Zero common points =
mis the true minimum; even 1 overlapping point = NO minimum exists!
• Case A — Unbounded WITH Minimum (Ex 12.1 Q4): Minimise
Z = 3x + 5y subject to x + 3y ≥ 3, x + y ≥ 2, x,y ≥ 0.Corners:
(3,0)→9, (3/2, 1/2)→7, (0,2)→10. Graph dashed 3x + 5y < 7: it stays strictly BELOW the region → NO common point ⇒ Minimum IS 7 at (3/2, 1/2)!• Case B — Unbounded with NO Minimum (NCERT Ex 4): Minimise
Z = −50x + 20y subject to 2x−y ≥ −5, 3x+y ≥ 3, 2x−3y ≤ 12, x,y ≥ 0.Smallest corner is
(6, 0) → −300. Graph dashed −50x + 20y < −300: test (10, 4) (feasible & Z = −420 < −300!) → Overlaps feasible region ⇒ NO minimum exists!
ax + by < m gets docked marks even when 7 happens to be right! And remember: strict inequalities < / > MUST be drawn as DASHED lines!Topic 12.2.2: Special Cases: Multiple Optimal Solutions vs Infeasible LPP
Z — meaning EVERY point on the straight edge connecting them is ALSO optimal! Other times, two constraints pull in completely opposite directions (like "make at least 8" AND "at most 3") leaving zero overlap — an Infeasible LPP!P, Q give the SAME optimal Z, then EVERY point on segment PQ gives that optimal Z (∞ optimal solutions!).Z = ax + by runs parallel to boundary edge PQ!Feasible Region = ∅) → NO feasible solution!PQ!); Empty Overlap = Zero Solutions (Infeasible!)Z = 3x + 9y across a polygon and discovering it aligns flat against the top wall x + 3y = 60 between corners (0, 20) and (15, 15)! Since the ruler hits the whole edge at once, not just the two endpoints, EVERY point along that wall earns the exact same jackpot Z = 180!| LPP Situation | Visual Clue on Graph | Board-Exam Conclusion |
|---|---|---|
| Unique Optimal | Best Z at 1 single corner | Unique value at that single (x, y) |
| Multiple Optimal | 2 adjacent corners tie for best Z | Infinitely many optimal solutions along segment joining them! |
| Infeasible | Shaded arrows point apart (no overlap) | Empty feasible region → No feasible solution! |
| Unbounded (No Opt) | Open half-plane overlaps feasible region | No maximum / No minimum exists! |
• Multiple Optimal (Ex 3): Maximise
Z = 3x + 9y on x + 3y ≤ 60, x + y ≥ 10, x ≤ y, x,y ≥ 0.Corners:
A(0,10)→90, B(5,5)→60 (Min), C(15,15)→180, D(0,20)→180! Both C and D tie at 180 → Max Z = 180 occurs at EVERY point on segment CD!• Infeasible (Ex 5):
x + y ≥ 8 and 3x + 5y ≤ 15 (x, y ≥ 0). Notice x+y≥8 stays outside (8,0)–(0,8) while 3x+5y≤15 stays inside (5,0)–(0,3) → zero overlap → No feasible solution!
(15, 15) and (0, 20) both giving Z = 180), writing "There are TWO optimal solutions" is WRONG! You MUST write: "Maximum value 180 occurs at INFINITELY MANY points — every point on the line segment joining (15, 15) and (0, 20)!"Solved Previous Year Questions (Kerala DHSE & NCERT)
Q1 (Kerala HSE Model / PYQ • 1 Marks): Define 'Feasible Region' and 'Optimal Solution' in a Linear Programming Problem.
Feasible Region: The common region determined by all the linear constraints including the non-negativity constraints (x ≥ 0, y ≥ 0) of an LPP.
Optimal Solution: Any point within the feasible region that gives the maximum or minimum value of the objective function Z = ax + by.
Q2 (Kerala HSE March PYQ • 2 Marks): State the Corner-Point Theorem for a bounded feasible region, and explain when an LPP admits infinitely many optimal solutions.
If the feasible region R is bounded, the objective function Z = ax + by attains both a maximum and a minimum value at corner points (vertices) of R.
If two adjacent corner points produce the exact same optimal value of Z, then every point on the line segment joining them gives that same optimal value — resulting in infinitely many optimal solutions.
Q3 (NCERT / Kerala HSE PYQ • 2 Marks): A merchant sells two models of fans A and B. He has space for at most 60 fans and ₹50,000 to invest. Fan A costs ₹2,500 (profit ₹250) and Fan B costs ₹500 (profit ₹75). Formulate this as an LPP to maximise profit.
Let x = number of Fan A and y = number of Fan B.
Maximise: Z = 250x + 75y
Subject to: x + y ≤ 60 (storage), 2500x + 500y ≤ 50000 ⇒ 5x + y ≤ 100 (budget), and x ≥ 0, y ≥ 0.
Q4 (Kerala HSE March PYQ • 3 Marks): Solve graphically: Maximise Z = 3x + 2y subject to x + 2y ≤ 10, 3x + y ≤ 15, x ≥ 0, y ≥ 0.
Boundary lines: x + 2y = 10 through (10,0), (0,5); 3x + y = 15 through (5,0), (0,15). Both shade toward (0,0).
Intersection: 3(10 − 2y) + y = 15 ⇒ 30 − 5y = 15 ⇒ y = 3, x = 4.
Corner points of bounded region: (0,0) → 0, (5,0) → 15, (4,3) → 12 + 6 = 18, (0,5) → 10.
Hence Maximum Z = 18 at (4, 3).
Q5 (Kerala HSE Say / Model PYQ • 3 Marks): Minimise Z = −3x + 4y subject to x + 2y ≤ 8, 3x + 2y ≤ 12, x ≥ 0, y ≥ 0.
Lines intersect at: subtracting x + 2y = 8 from 3x + 2y = 12 gives 2x = 4 ⇒ x = 2, y = 3.
Bounded vertices: (0,0) → 0, (4,0) → −12, (2,3) → −6 + 12 = 6, (0,4) → 16.
Minimum value of Z is −12 at (4, 0).
Q6 (Kerala HSE March PYQ (High Yield) • 4 Marks): Solve graphically: Minimise Z = 3x + 5y such that x + 3y ≥ 3, x + y ≥ 2, x ≥ 0, y ≥ 0.
Line x + 3y = 3 meets axes at (3,0), (0,1); Line x + y = 2 meets axes at (2,0), (0,2). Both shade AWAY from (0,0) → Unbounded feasible region.
Intersection: (x + 3y) − (x + y) = 3 − 2 ⇒ 2y = 1 ⇒ y = ½, x = 3/2.
Corner points: (3, 0) → 9, (3/2, 1/2) → 9/2 + 5/2 = 7, (0, 2) → 10.
Open Half-Plane Test: Graph dashed 3x + 5y < 7 (passes through (7/3, 0) and (0, 7/5), shades toward (0,0)). It has NO point in common with the feasible region.
Therefore, Minimum Z = 7 at (3/2, 1/2).
Q7 (NCERT Ex 3 / HSE PYQ • 4 Marks): Minimise and Maximise Z = 3x + 9y subject to x + 3y ≤ 60, x + y ≥ 10, x ≤ y, x ≥ 0, y ≥ 0.
Bounded feasible region has 4 corner points:
• A(0, 10) (on x=0, x+y=10) → Z = 90
• B(5, 5) (on x=y, x+y=10) → Z = 15 + 45 = 60 (Minimum!)
• C(15, 15) (on x=y, x+3y=60) → Z = 45 + 135 = 180 (Maximum!)
• D(0, 20) (on x=0, x+3y=60) → Z = 180 (Maximum!)
Conclusion: Minimum Z = 60 at (5, 5); Maximum Z = 180 at every point on the line segment joining (15, 15) and (0, 20).
Q8 (NCERT Ex 4 / HSE Model PYQ • 4 Marks): Determine graphically whether Z = −50x + 20y has a minimum value subject to 2x − y ≥ −5, 3x + y ≥ 3, 2x − 3y ≤ 12, x ≥ 0, y ≥ 0.
The shaded feasible region in Quadrant I is unbounded with corner points (0, 5), (0, 3), (1, 0), and (6, 0).
Corner values: Z(0,5) = 100, Z(0,3) = 60, Z(1,0) = −50, Z(6,0) = −300.
Open Half-Plane Check: Graph dashed −50x + 20y < −300 (i.e. −5x + 2y < −30). Test feasible point (10, 4): −500 + 80 = −420 < −300 is TRUE!
Since the open half-plane has common points with the feasible region, Z has NO minimum value.