



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Linear Programming (LP) is a mathematical method used to find the best possible outcome (maximum profit, minimum cost, etc.) from a set of choices, when those choices must obey certain limits called constraints. All the relationships involved — the thing we want to optimize and the limits we must respect — are linear (straight-line) equations or inequalities.
The unknown quantities we are trying to find, usually written as x and y. They represent choices such as "units of Product A" or "hours of work".
The formula for the quantity we want to maximize or minimize , written as Z. FORMULA
Linear inequalities that restrict the values decision variables can take (limited resources, time, budget, etc.). Example: 2x + y ≤ 10.
Since most real quantities (units, hours, kilograms) cannot be negative, we always add:
The feasible region is the set of all points (x, y) that satisfy every constraint at the same time. Graphically, it is the overlapping shaded area of all the half-planes. The optimal answer is always found at a corner (vertex) of this region.
Type Goal Typical use Maximization Largest possible Z Profit, output, score Minimization Smallest possible Z Cost, time, distance
Manufacturing – maximizing profit from products Diet planning – minimizing cost while meeting nutrition needs Transportation – minimizing delivery/shipping cost Workforce & time scheduling Figure 1.1 — The shaded triangle is the feasible region for x + y ≤ 4, x ≥ 0, y ≥ 0. Every point inside or on the boundary of this triangle satisfies all three conditions.
A furniture workshop makes Chairs and Tables. Let x = number of chairs, y = number of tables made per day. Identify the decision variables, and write a possible objective function if each chair gives $15 profit and each table gives $40 profit, and the workshop wants to maximize profit. Solution: Decision variables: x (chairs), y (tables). Since profit is to be maximized : Objective Function: Maximize Z = 15x + 40y EXAMPLE 2 A bakery uses flour and sugar to make Cakes (x) and Cookies (y). Each cake needs 3 kg flour and 1 kg sugar; each batch of cookies needs 1 kg flour and 2 kg sugar. Only 60 kg flour and 40 kg sugar are available. Write the constraints. Solution: Flour used cannot exceed 60 kg, sugar used cannot exceed 40 kg, and quantities cannot be negative: 3x + y ≤ 60 | x + 2y ≤ 40 | x ≥ 0, y ≥ 0 EXAMPLE 3 Check whether the point (2, 3) is in the feasible region defined by: x + y ≤ 6, x ≤ 4, y ≤ 5, x, y ≥ 0. Solution: Substitute x = 2, y = 3 into each constraint: x + y = 2 + 3 = 5 ≤ 6 ✓ True x = 2 ≤ 4 ✓ True y = 3 ≤ 5 ✓ True x = 2 ≥ 0, y = 3 ≥ 0 ✓ True All conditions satisfied → (2, 3) IS in the feasible region.
2. Linear Inequalities & Graphing 2.1 Linear Inequalities in Two Variables A linear inequality such as ax + by ≤ c (or ≥, <, >) divides the coordinate plane into two half-planes using a straight boundary line ax + by = c.
Symbol Line type Meaning ≤ or ≥ Solid line Points ON the line ARE included < or > Dashed line Points ON the line are NOT included
Graph the inequality 2x + y > 8. Solution: Boundary line: 2x + y = 8, drawn dashed (since >, a strict inequality — points on the line itself are excluded). Test (0,0): 2(0) + 0 = 0 > 8 → FALSE. Shade the side away from the origin. Dashed line; shade away from origin (upper-right side) EXAMPLE 6 Find the feasible region for the system: x + y ≤ 6, x ≤ 4, x, y ≥
Solution: Plot both boundary lines and shade below/left of each. The feasible region is bounded by four vertices, found by solving each pair of intersecting lines: Vertices: (0,0), (4,0), (4,2), (0,6) Figure 2.2 — Feasible region for Example 6
Find the feasible region for: 2x + 3y ≤ 12, x + y ≤ 5, x, y ≥ 0. Solution: Solve 2x+3y=12 and x+y=5 together: from x+y=5, y = 5−x. Substitute: 2x + 3(5−x) = 12 ⇒ 2x+15−3x=12 ⇒ −x=−3 ⇒ x=3, y=2. Check axis intercepts: (5,0) satisfies 2x+3y≤12 (10≤12 ✓); (0,4) satisfies x+y≤5 (4≤5 ✓). Vertices: (0,0), (5,0), (3,2), (0,4) 2.4 Common Graphing Rules — Quick Reference Table Situation Rule Inequality has ≤ or ≥ Draw a solid boundary line Inequality has < or > Draw a dashed boundary line Test point makes inequality TRUE Shade the side containing the test point Test point makes inequality FALSE Shade the opposite side x ≥ 0 and y ≥ 0 present Feasible region lies only in the first quadrant Several constraints together Feasible region = overlap of all shaded areas
4. Applications & Special Cases Linear Programming is used to model real situations: resource allocation (limited materials/time), production & profit planning, diet/mixing problems (meeting nutrition at least cost), and transportation problems (minimizing shipping cost). The steps are always the same — only the story changes. EXAMPLE 12 — Production & Profit A factory makes Toy A (x) and Toy B (y). Toy A needs 2 hrs cutting
Always label every axis, boundary line, and vertex clearly. Make a small vertex-vs-Z table — it avoids calculation errors. Double-check the intersection point algebraically, not just by eye. State the final answer in words, matching the question's context.
5. Formula Sheet & Quick Revision OBJECTIVE FUNCTION
CONSTRAINT FORMAT
NON-NEGATIVITY
Boundary line: solid (≤,≥) or dashed (<,>) Test a point (usually origin) Shade correct half-plane Keep only the first quadrant (x,y ≥ 0) Mark every vertex with coordinates
List all vertices of the feasible region Substitute each into Z Compare all Z-values Max → largest Z; Min → smallest Z State the answer with units/context 5.1 Practice Questions Q1. Maximize Z=3x+2y; x+y≤4, x≤3, y≤3, x,y≥0. Q2. Minimize Z=5x+4y; x+y≥5, x≥1, y≥1. Q3. Maximize Z=6x+5y; 2x+y≤10, x+3y≤15, x,y≥0. Q4. Is (2,2) feasible for x+y≤5, 2x+y≤7, x,y≥0? Q5. Minimize Z=2x+5y; x+2y≥10, 3x+y≥15, x,y≥0. Q6. Maximize Z=7x+5y; x+2y≤10, 3x+y≤15, x,y≥0. Q Key vertices checked Answer 1 (0,0), (3,0), (3,1), (1,3), (0,3) Max Z = 11 at (3,1) 2 (1,4), (4,1) Min Z = 21 at (1,4) 3 (0,0), (5,0), (3,4), (0,5) Max Z = 38 at (3,4) 4 2+2=4≤5 ✓, 2(2)+2=6≤7 ✓ Yes — feasible 5 (10,0), (4,3), (0,15) Min Z = 20 at (10,0) 6 (0,0), (5,0), (4,3), (0,5) Max Z = 43 at (4,3) 5.2 Key Terms Glossary Decision Variable An unknown quantity to be determined (x, y). Objective Function The expression Z to be maximized or minimized. Constraint A linear inequality limiting the decision variables. Feasible Region Set of all points satisfying every constraint. Corner Point (Vertex) A point where two boundary lines meet. Optimal Solution The vertex giving the best (max/min) Z-value. Bounded Region A feasible region enclosed on all sides. Unbounded Region A feasible region extending to infinity. 5.3 Quick Revision Summary REMEMBER