




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to linear programming and its application to the brewery problem. Linear programming is a powerful tool for optimal allocation of scarce resources among competing activities. The brewery problem involves maximizing profits by producing a certain quantity of ale and beer with limited resources of corn, hops, and malt. The significance of linear programming, provides the objective function and feasible region for the brewery problem, and describes the simplex algorithm for finding the optimal solution.
Typology: Assignments
1 / 8
This page cannot be seen from the preview
Don't miss anything!





Princeton University
-^ COS 226 -^ Algorithms and Data Structures -^ Spring 2004 -^ Kevin Wayne -^ http://www.Princeton.EDU/~cos
Reference:
Linear Programming
-^ shortest path, max flow, min cost flow, generalized flow,multicommodity flow, MST, matching, 2-person zero sum games
3
Applications
Agriculture.
Diet problem. Computer science. Compiler register allocation, data mining.Electrical engineering.
VLSI design, optimal clocking.
Energy.
Blending petroleum products. Economics. Equilibrium theory, two-person zero-sum games.Environment.
Water quality management. Finance.
Portfolio optimization. Logistics. Supply-chain management, Berlin airlift.Management. Hotel yield management.Marketing.
Direct mail advertising. Manufacturing. Production line balancing, cutting stock.Medicine. Radioactive seed placement in cancer treatment.Operations research.
Airline crew assignment, vehicle routing.
Physics. Ground states of 3-D Ising spin glasses.Plasma physics. Optimal stellarator design.Telecommunication. Network design, Internet routing.Sports.
Scheduling ACC basketball, handicapping horse races.
Brewery Problem: A Toy LP Example
Beverage
Corn(pounds)
Malt(pounds)
Hops(ounces)
Beer
Ale^
Profit($)^1323
Quantity
5
Brewery Problem
(^5) t. s.
max
Ale^ A
Beer
ProfitCornHopsMalt
Brewery Problem: Feasible Region Ale
Corn 5A + 15B
Hops 4A + 4B
Malt 35A + 20B
7
Brewery Problem: Objective Function
Profit
Extreme points Brewery Problem: Geometry
13
Simplex Algorithm
never decrease objective function
Simplex Algorithm: Basis
Ale
Beer
Basis{A, B, S
}M^ (12, 28)
{A, B, S
}C^ (26, 14)
{B, SH
, S^ }M^ (0, 32)
{S, SH
, S^ }MC^ (0, 0)
{A, SH
, S}C^ (34, 0)
0 , , , ,
1190
20 35
160
4 4
480
15 (^5) t. s.
23 13 max
M H C
M H C
S S S B A
S
B A
S B A
S B A
B A
Infeasible{A, B, S
}H (19.41, 25.53)
16
to subject max
43
853
(^415)
83
(^115)
(^13)
2315
163
M H C
M
C
H C C C
Basis = {B, S
Simplex Algorithm:
Pivot 1^0
, , , ,
to subject max
M H C
M H C
Basis = {S
Simplex Algorithm:
Pivot 1
to subject max
M H C
M H C
Basis = {S
18
Simplex Algorithm:
Pivot 2
to subject max
43
853
(^415)
83
(^115)
(^13)
2315
163
M H C
M
C
H C C C
to subject max
858 256
38 (^110)
18 (^110)
M H C
M H C
H C
H C
H C
Basis = {B, S
Z = 736B = 32S= 32H^ S= 550M^ Basis = {A, B, S
Simplex Algorithm: Optimality
-^ in particular: Z = 800 – S
H
Basis = {A, B, S
to subject max
858 256
38 (^110)
18 (^110)
M H C
M H C
H C
H C
H C
20
Simplex Algorithm: Issues
LP Duality: Economic Interpretation
0 ,
1190 20 35
160 4 4
480 15 (^5) t. s.
23 13 max (P)
B A
B A
B A
B A
B A
0 , ,
23 20 4 15
13 35 4 5 t.s.
1190 160 480 min (D)
M H C
M H C
M H C
M H C
27
History
History
-^ n = # variables–^ L = # bits in input Theoretical tour de force, not remotely practical.
29
History
History
31
History
History
33
tractable intractable (conjectured)
Ultimate Problem Solving Model
Perspective
An unsuspecting MBA student transitions from tractableLP to intractable ILP in a single mouse click.