Wize Algebra Textbook > Linear Programming

Applications of Linear Programming

Applications of Linear Programming

Many planning decisions in business and operations share one structure: choose quantities that make a linear goal as large or as small as possible while staying within linear limits. This lesson covers the standard application families, the direction their constraints usually point, and how to read an optimal solution back into the language of the problem.

The structure every application shares

Every application has three parts: decision variables, a linear objective, and linear constraints.


optimize z=c1x1+c2x2+⋯+cnxnsubject toai1x1+⋯+ainxn  (≤,=,≥)  bi,xj≥0\text{optimize } z = c_1x_1 + c_2x_2 + \cdots + c_nx_n \quad \text{subject to} \quad a_{i1}x_1 + \cdots + a_{in}x_n \;(\le, =, \ge)\; b_i, \qquad x_j \ge 0


Each coefficient has a business meaning. cjc_j is the profit or cost per unit of activity jj. aija_{ij} is how much of resource or requirement ii one unit of xjx_j uses or supplies. bib_i is the amount available or required. The table shows how the common families differ.


Application

Typical goal

Typical constraints

Example variable

Product mix

Maximize profit

Resource use ≤ hours or materials available

Units of each product

Diet or blending

Minimize cost

Nutrient content ≥ requirement, some ≤ limits

Kilograms of each ingredient

Transportation

Minimize shipping cost

Shipments from a source ≤ supply; shipments to a destination ≥ demand

Units shipped on each route

Investment

Maximize return

Total invested ≤ budget; policy or risk limits

Dollars in each asset

Staff scheduling

Minimize payroll

Staff on duty ≥ coverage needed in each period

Workers starting each shift



Reading the optimal solution in context

The optimal solution is a list of numbers, and the application gives those numbers meaning. At the optimum, a binding constraint is one that holds with equality: the plan uses all of a resource or meets a requirement exactly. A constraint that is not binding has room to spare. For a ≤ constraint that room is its slack. For a ≥ constraint the excess is called surplus.


slack=bi−(amount used),surplus=(amount supplied)−bi\text{slack} = b_i - (\text{amount used}), \qquad \text{surplus} = (\text{amount supplied}) - b_i


Binding constraints are the bottlenecks. In a product-mix problem, a binding labor constraint means extra labor hours may raise profit. A material with 30 kg of slack is not limiting the plan, so buying more of it with nothing else changed leaves the optimal profit unchanged. Only binding constraints can be holding the optimum back, so managers look at them first when deciding where to add capacity.


Example: A print shop's optimal weekly plan uses all 40 press hours and 28 of its 35 bookbinding hours. Press time is binding, with zero slack. Bookbinding has 7 hours of slack, so adding bookbinding hours this week would not raise profit.


Slack is not waste to be removed at any cost. It shows that another limit ran out first. Forcing a nonbinding resource to be fully used would move the plan away from the optimum unless the problem has other optimal plans.

When linear programming fits the application

An LP model is only as good as its assumptions. Before trusting a solution, check that the situation satisfies each of these:

  • Proportionality: doubling an activity doubles its profit and its resource use, so the model has no volume discounts or setup costs.
  • Additivity: total profit and total resource use are sums of the separate activities.
  • Divisibility: fractional values such as 12.5 kg or 3.4 hours make sense.
  • Certainty: prices, costs and resource amounts are known constants for the planning period.

Blending and investment problems usually satisfy divisibility, because kilograms and dollars divide finely. Staff scheduling often does not.



What to remember

  • Product mix and investment problems usually maximize. Blending, transportation and scheduling problems usually minimize.
  • Capacity wording gives ≤ constraints, and requirement wording gives ≥ constraints.
  • At the optimum, binding constraints have zero slack or surplus and mark the bottlenecks.
  • Relaxing a nonbinding constraint, with nothing else changed, does not change the optimal value.
  • Check proportionality, additivity, divisibility and certainty before trusting the model.

Example: Least-cost feed blend

A feed mill makes batches of livestock feed by blending corn and soybean meal. Corn costs $0.20 per kg and contains 10% protein and 2% fiber. Soybean meal costs $0.50 per kg and contains 40% protein and 6% fiber. Each batch must weigh at least 1,000 kg, contain at least 220 kg of protein and contain at most 50 kg of fiber. Let xx be the kilograms of corn and yy the kilograms of soybean meal in one batch.


a) Identify the application family and write the linear program.


This is a blending (diet) problem: the mill chooses ingredient amounts to minimize cost while meeting content requirements. The cost per batch is 0.20x+0.50y0.20x + 0.50y dollars. Each kilogram of corn supplies 0.10 kg of protein and 0.02 kg of fiber. Each kilogram of soybean meal supplies 0.40 kg of protein and 0.06 kg of fiber.


minimize C=0.20x+0.50ysubject to x+y≥1000(batch size, kg)0.10x+0.40y≥220(protein, kg)0.02x+0.06y≤50(fiber, kg)x, y≥0\begin{aligned} \text{minimize } C &= 0.20x + 0.50y \\ \text{subject to } x + y &\ge 1000 \quad \text{(batch size, kg)} \\ 0.10x + 0.40y &\ge 220 \quad \text{(protein, kg)} \\ 0.02x + 0.06y &\le 50 \quad \text{(fiber, kg)} \\ x,\ y &\ge 0 \end{aligned}


The requirement wording gives two ≥ constraints, and the fiber cap gives one ≤ constraint.


b) The feasible region has four corner points: (250,750)(250, 750), (600,400)(600, 400), (2200,0)(2200, 0) and (2500,0)(2500, 0). Verify the corner where the batch-size and protein lines meet, then find the least-cost blend.


Set both constraints to equality and substitute x=1000−yx = 1000 - y into the protein equation: 0.10(1000−y)+0.40y=2200.10(1000 - y) + 0.40y = 220, which simplifies to 100+0.30y=220100 + 0.30y = 220. Subtracting 100 from both sides leaves 0.30y0.30y equal to ________, so y=400y = 400 and x=1000−400=600x = 1000 - 400 = 600.


Check the fiber cap at this point: 0.02(600)+0.06(400)=360.02(600) + 0.06(400) = 36 kg, which is at most 50 kg, so (600,400)(600, 400) is feasible.


Now evaluate the cost at every corner:

  • At (250,750)(250, 750) the cost is 0.20(250)+0.50(750)0.20(250) + 0.50(750), which comes to ________.
  • At (600,400)(600, 400) the cost is 0.20(600)+0.50(400)=120+200=3200.20(600) + 0.50(400) = 120 + 200 = 320 dollars.
  • At (2200,0)(2200, 0) the cost is 0.20(2200)0.20(2200), which comes to ________.
  • At (2500,0)(2500, 0) the cost is 0.20(2500)=5000.20(2500) = 500 dollars.

The least-cost blend is 600 kg of corn and 400 kg of soybean meal per batch, at a cost of $320.


c) Which constraints are binding at the optimal blend? Find the slack or surplus in each constraint and interpret the result.


Substitute (600,400)(600, 400) into each constraint:

  • Batch size: 600+400=1000600 + 400 = 1000 kg, so the surplus is 1000−1000=01000 - 1000 = 0 kg and the constraint is binding.
  • Protein: 0.10(600)+0.40(400)=60+1600.10(600) + 0.40(400) = 60 + 160, which gives ________, so the surplus is 0 kg and the constraint is binding.
  • Fiber: 0.02(600)+0.06(400)=12+240.02(600) + 0.06(400) = 12 + 24, which gives ________, so the slack is 50−36=1450 - 36 = 14 kg and the constraint is not binding.

The batch-size and protein requirements are the bottlenecks that set the cost. The fiber cap has 14 kg of room, so loosening it, for example to 60 kg, would not lower the cost of the optimal batch.



d) A supplier raises the price of soybean meal to $0.70 per kg while corn stays at $0.20 per kg. Does the optimal blend change, and what is the new minimum cost?


The constraints are unchanged, so the corner points are the same: a price change moves only the objective, not the feasible region. The new objective is C=0.20x+0.70yC = 0.20x + 0.70y.

  • At (250,750)(250, 750): C=50+525C = 50 + 525, which comes to ________.
  • At (600,400)(600, 400): C=120+280=400C = 120 + 280 = 400 dollars.
  • At (2200,0)(2200, 0): C=0.20(2200)=440C = 0.20(2200) = 440 dollars.
  • At (2500,0)(2500, 0): C=0.20(2500)=500C = 0.20(2500) = 500 dollars.

The optimal blend stays at 600 kg of corn and 400 kg of soybean meal. The minimum cost rises to $400 per batch, which is still $40 below the all-corn corner at (2200,0)(2200, 0).

Match each linear programming application family with the planning situation it describes. Each situation asks for quantities that optimize one goal subject to linear limits.

Match each term
A.

An investor divides a fixed budget among bonds and funds to maximize expected return under risk limits

B.

A refinery combines crude oils at minimum cost so the gasoline meets octane and sulfur specifications

C.

A call center decides how many agents start each shift so every hour has enough agents on duty

D.

A furniture maker chooses how many tables and chairs to build to maximize profit within limited workshop hours

E.

A company sets shipment quantities from three warehouses to four stores at minimum freight cost

Portfolio allocation

Product mix

Transportation

Blending

Staff scheduling

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A distributor ships pallets from Plant A (supply 120 pallets) and Plant B (supply 180 pallets) to Store 1, Store 2 and Store 3, which need 90, 110 and 100 pallets. Total supply equals total demand, so in this balanced transportation model each plant ships exactly its supply and each store receives exactly its demand. The shipping cost per pallet is:


From

Store 1

Store 2

Store 3

Plant A

$4

$6

$9

Plant B

$5

$3

$7


A planner has already fixed two routes: Plant A sends 90 pallets to Store 1 and none to Store 3. Complete the table so that every supply and demand constraint holds, then give the cost of each route and the total cost in whole dollars.

RoutePallets shippedShipping cost (dollars)
Plant A to Store 190360
Plant A to Store 2
Plant A to Store 300
Plant B to Store 1
Plant B to Store 2
Plant B to Store 3
Total300

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An investor has at most $120,000 to place in a bond fund that yields 4% per year and a stock fund that yields 9% per year. A risk policy requires the amount in bonds to be at least twice the amount in stocks, and no more than $50,000 may go into stocks. Find the maximum possible annual return, in dollars, to the nearest dollar.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice