Docsity

Linear Programming: Constraints, Graphs & Optimization – Study Notes, Summaries of Mathematics

Toggle sidebar
bg1
LinearProgramming:Constraints,Graphs&Optimization
ST UD Y N O TE S — H I GH SC HO O L & C O LL EG E M A TH EM A TI C S
1.IntroductiontoLinearProgramming
1.1WhatisLinearProgramming?
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.
1.2KeyBuildingBlocks
DecisionVariables
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".
ObjectiveFunction
The formula for the quantity we want to maximize or minimize,
writtenasZ.
FORM ULA
Z=ax+by(a,bareconstants)
Constraints
Linearinequalitiesthatrestrictthevaluesdecisionvariablescantake
(limitedresources,time,budget,etc.).Example:2x+y≤10.
Non-NegativityRestrictions
Since most real quantities (units, hours, kilograms) cannot be
negative,wealwaysadd:
x≥0andy≥0
1.3FeasibleRegion
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.
MaximizationvsMinimization
Type Goal Typicaluse
Maximization LargestpossibleZ Profit,output,score
Minimization SmallestpossibleZ Cost,time,distance
Real-LifeApplications
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.
1.4WorkedExamples
EXAMPLE1
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.
LinearProgrammingStudyNotes—Page1of5
pf3
pf4
pf5

Partial preview of the text

Download Linear Programming: Constraints, Graphs & Optimization – Study Notes and more Summaries Mathematics in PDF only on Docsity!

Linear Programming: Constraints, Graphs & Optimization

STUDY NOTES — HIGH SCHOOL & COLLEGE MATHEMATICS

1. Introduction to Linear Programming

1.1 What is Linear Programming?

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.

1.2 Key Building Blocks

Decision Variables

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".

Objective Function

The formula for the quantity we want to maximize or minimize , written as Z. FORMULA

Z = ax + by (a, b are constants)

Constraints

Linear inequalities that restrict the values decision variables can take (limited resources, time, budget, etc.). Example: 2x + y ≤ 10.

Non-Negativity Restrictions

Since most real quantities (units, hours, kilograms) cannot be negative, we always add:

x ≥ 0 and y ≥ 0

1.3 Feasible Region

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.

Maximization vs Minimization

Type Goal Typical use Maximization Largest possible Z Profit, output, score Minimization Smallest possible Z Cost, time, distance

Real-Life Applications

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.

1.4 Worked Examples

EXAMPLE 1

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.

Solid vs Dashed Boundary Lines

Symbol Line type Meaning ≤ or ≥ Solid line Points ON the line ARE included < or > Dashed line Points ON the line are NOT included

Testing a Point (Method)

  1. Draw the boundary line (ax + by = c).
  2. Pick a test point not on the line — usually (0, 0).
  3. Substitute it into the inequality.
  4. If TRUE → shade the side containing that point.
  5. If FALSE → shade the opposite side. 2.2 Systems of Inequalities A Linear Programming problem always has more than one constraint. The feasible region is the area where the shaded regions of all inequalities overlap.

Steps to Find the Feasible Region

  1. Graph each boundary line.
  2. Shade the correct half-plane for each inequality.
  3. Include x ≥ 0 and y ≥ 0 (first quadrant only).
  4. The overlapping region is the feasible region.
  5. Mark all corner points (vertices) clearly. QUICK TIP If (0,0) is not on any boundary line, it is the fastest test point to use. 2.3 Worked Examples EXAMPLE 4 Graph the inequality x + y ≤ 5. Solution: Boundary line: x + y = 5, drawn solid (since ≤). Test (0,0): 0 + 0 = 0 ≤ 5 → TRUE. Shade the side containing the origin. Solid line; shade below/left of x + y = 5 Figure 2.1 — Graph of x + y ≤ 5

EXAMPLE 5

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

EXAMPLE 7

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

  • 1 hr finishing; Toy B needs 1 hr cutting + 3 hrs finishing. Cutting time available: 12 hrs/day; finishing: 15 hrs/day. Profit: $ per Toy A, $6 per Toy B. Maximize profit. Setup: Maximize Z=8x+6y; 2x+y≤12; x+3y≤15; x,y≥0. Intersection: 2x+y=12 and x+3y=15 ⇒ x=4.2, y=3.6. Vertex Z=8x+6y (0,0) 0 (6,0) 48 (4.2, 3.6) 55.2 ← LP MAX (0,5) 30 LP-optimal Z = 55.2 at (4.2, 3.6) Interpreting in context: Toys must be whole numbers, so we test nearby integer points: (5,2) gives 2(5)+2=12≤12 and 5+3(2)=11≤15 → Z=8(5)+6(2)= $52 , the best realistic (integer) profit. EXAMPLE 13 — Diet / Mixing Food X costs $3/unit (2 units Vitamin A, 4 units Vitamin B per unit). Food Y costs $2/unit (3 units A, 2 units B). Daily needs: at least 8 units A, at least 9 units B. Minimize cost. Setup: Minimize Z=3x+2y; x+2y≥8; 3x+y≥9; x,y≥0. Intersection: x+2y=8 and 3x+y=9 ⇒ x=2, y=3. Vertex Z=3x+2y (8,0) 24 (2,3) 12 ← MIN (0,9) 18 Minimum cost Z = $12 at (2, 3) In context: Buy 2 units of Food X and 3 units of Food Y daily for the cheapest diet that meets both nutrient needs. EXAMPLE 14 — Multiple Optimal Solutions Maximize Z = 2x + 2y subject to: x+y≤6, x≤4, y≤4, x,y≥0. Vertex Z=2x+2y (0,0) 0 (4,0) 8 (4,2) 12 (2,4) 12 (0,4) 8 Both (4,2) and (2,4) give Z=12. Since this edge lies exactly on x+y=6, every point on the segment between them also gives Z=12. Infinitely many optimal solutions along the edge (4,2)– (2,4) Figure 4.1 — The whole red edge is optimal, Example 14 4.1 Special Case: No Feasible Solution & Unbounded Solution EXAMPLE 15(a) — Infeasible Solve: x+y≤2 and x+y≥5, x,y≥0. Solution: The first needs x+y to be small (≤2); the second needs it large (≥5). No point can satisfy both. No Feasible Solution — regions do not overlap Figure 4.2 — Two non-overlapping regions EXAMPLE 15(b) — Unbounded Maximize Z = x + y subject to: x−y≤1, x,y≥0. Solution: The feasible region extends forever toward the upper- right (e.g. (1,10), (10,19)... always satisfy x−y≤1). Z keeps increasing with no upper limit. Unbounded Solution — no maximum value exists Figure 4.3 — Region extends to infinity COMMON STUDENT MISTAKES Forgetting to include x≥0, y≥0 (missing extra vertices) Using dashed lines for ≤/≥ or solid lines for </> Shading the wrong side of the boundary line Testing the objective function only at (0,0) instead of every vertex Forgetting units or context when stating the final answer

EXAM TIPS

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

Maximize / Minimize Z = ax + by

CONSTRAINT FORMAT

ax + by ≤ c (or ≥, =)

NON-NEGATIVITY

x ≥ 0 and y ≥ 0

Graphing Checklist

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

Corner-Point Checklist

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

  1. Define variables → write Z → write constraints.
  2. Add x≥0, y≥0 unless stated otherwise.
  3. Graph, shade, and find the feasible region.
  4. Locate every vertex; evaluate Z at each.
  5. Pick the max or min; interpret in real-world terms. IMPORTANT EXAM REMINDERS The optimal value ALWAYS occurs at a vertex, not inside the region. Check for multiple optimal solutions if Z is parallel to a boundary edge. An empty overlap means no feasible solution. Always verify your vertex by substituting back into both original equations.