01 / 21

Linear
Programming

Learn how businesses use mathematical optimization to maximize profit and minimize cost under real-world constraints.

Business Analytics

What Is Linear Programming?

Linear programming (LP) is a mathematical method for finding the best outcome in a model whose requirements are expressed as linear relationships. It is one of the most widely used tools in business analytics and operations research.

Three Key Components of LP

Decision Variables
The unknowns you control: how many units to produce, hours to schedule, dollars to invest.
Objective Function
The quantity to maximize or minimize, expressed as a linear equation of the decision variables.
Constraints
Limitations on resources (time, money, materials) written as linear inequalities or equations.

Why LP Matters in Business

Every business faces the same challenge: limited resources, unlimited wants. Linear programming provides a systematic way to allocate scarce resources optimally.

Manufacturing
Decide product mix to maximize profit given machine and labor limits.
Logistics
Minimize shipping cost across warehouses and delivery routes.
Finance
Allocate investment capital to maximize return under risk constraints.

The Standard Form of an LP

Where \( x_1, x_2, \ldots, x_n \) are decision variables, \( c_i \) are profit/cost coefficients, \( a_{ij} \) are resource usage rates, and \( b_i \) are resource limits. The last line is the non-negativity constraint.

The Feasible Region

\(x_1\) \(x_2\) 0 \(x_1 + 2 x_2 \leq 12\) \(2 x_1 + x_2 \leq 12\) \((0, 0)\) \((6, 0)\) \((4, 4)\) \((0, 6)\) Feasible Region 6 12 6 12

The Corner Point Theorem

This theorem is the foundation of the graphical method. Instead of testing infinitely many points, you only need to evaluate the objective function at each corner point and pick the best one.

1
Graph the constraints to identify the feasible region.
2
Find all corner points by solving systems of equations where constraint lines intersect.
3
Evaluate \( Z \) at each corner point and select the maximum or minimum.

Maximize vs Minimize

Maximization Minimization
Goal Largest value of \( Z \) Smallest value of \( Z \)
Typical use Profit, revenue, output Cost, waste, time
Constraint type \( \leq \) (resource limits) \( \geq \) (minimum requirements)
Optimal location Corner with the highest \( Z \) value Corner with the lowest \( Z \) value
Method Same: evaluate all corner points

How to Formulate an LP

1
Define decision variables: What quantities do you control? Label them \( x_1, x_2, \ldots \)
2
Write the objective function: Express profit or cost as \( Z = c_1 x_1 + c_2 x_2 + \cdots \)
3
Identify constraints: Translate each resource limit or requirement into an inequality.
4
Add non-negativity: \( x_1 \geq 0,\; x_2 \geq 0 \). You cannot produce negative quantities.
5
Solve graphically: Plot constraints, shade the feasible region, test corner points.

Example 1: Furniture Company

A furniture company makes tables (\( x_1 \)) and chairs (\( x_2 \)). Each table earns $40 profit and each chair earns $30. Resources per unit:

Resource Table (\( x_1 \)) Chair (\( x_2 \)) Available
Assembly (hrs) 2 1 16
Finishing (hrs) 1 2 14

Example 1: Graphical Solution

\(x_1\) \(x_2\) 0 \(2 x_1 + x_2 = 16\) \(x_1 + 2 x_2 = 14\) \((0,0): Z=0\) \((8,0): Z=320\) \((6,4): Z=360\) ★ \((0,7): Z=210\) 8 14 7 16

Example 2: Bakery Problem

A bakery makes cakes (\( x_1 \)) and pies (\( x_2 \)). Each cake costs $10 to make and each pie costs $5. The bakery must fill at least 20 orders and use at least 60 lbs of flour.

Requirement Cake (\( x_1 \)) Pie (\( x_2 \)) Minimum
Orders 1 1 20
Flour (lbs) 4 2 60

Example 2: Minimization Solution

\(x_1\) \(x_2\) 0 \(x_1 + x_2 = 20\) \(4 x_1 + 2 x_2 = 60\) \((0,30): Z=150\) ★ \((10,10): Z=150\) ★ \((20,0): Z=200\) 10 20 20 30

Special Cases in LP

Multiple Optima
When the objective function is parallel to a constraint, every point on that edge is optimal.
Unbounded
The feasible region extends infinitely in the direction of optimization: no finite optimum exists.
Infeasible
No point satisfies all constraints simultaneously: the feasible region is empty.

Common Mistakes

✕ Wrong Inequality Direction
Using \( \leq \) when the problem says "at least" (should be \( \geq \)) or vice versa. Read the problem carefully.
✕ Forgetting Non-Negativity
Omitting \( x_1 \geq 0 \) and \( x_2 \geq 0 \). These constraints define two boundaries of the feasible region.
✕ Testing Interior Points
Evaluating \( Z \) at random points inside the region instead of only at corner points. The optimum is always at a vertex.

LP Summary

Component What It Is Example
Decision Variables Quantities you control \( x_1 \) = tables, \( x_2 \) = chairs
Objective Function What to optimize \( Z = 40x_1 + 30x_2 \)
Constraints Resource limitations \( 2x_1 + x_2 \leq 16 \)
Feasible Region All valid solutions Shaded polygon on graph
Optimal Solution Best corner point \( (6, 4) \) with \( Z = 360 \)

Question 1 of 5

In a linear programming problem, the objective function represents:

Question 2 of 5

According to the Corner Point Theorem, where does the optimal solution of an LP occur?

Question 3 of 5

A company maximizes \( Z = 5x_1 + 8x_2 \). The corner points of its feasible region are (0, 0), (6, 0), (4, 3), and (0, 5). What is the maximum value of \( Z \)?

Question 4 of 5

A factory requires at least 100 units of output. Which inequality correctly represents this constraint if \( x_1 \) and \( x_2 \) are the units produced?

Question 5 of 5

If no set of values for the decision variables satisfies all the constraints simultaneously, the LP problem is said to be: