Linear Programming
Linear Programming
Formula
Constraints Table: LHS
Budget : 200 500 40000
at least 10 radio 1 175
at least 10 TV 1 10
R >= TV 1 -1 165
Summary Sentence:
Purshase 175 Radio Ads, 10 TV ads, to reach a maximum of 595000 people.
Sign RHS
<= 40000 =SUMPRODUCT(B11:C11,$B$2:$C$2)
>= 10
>= 10
>= 0
Transportation Example
destinations
Data Table: Albany Boston Cleveland Output
Des Moine 5 4 3 100
sources Evanston 8 4 3 300
Ft lauderdale 9 7 5 300
Demand 300 200 200
destinations
Shipment Table Albany Boston Cleveland Output
sources
Objective (Min)
Total Cost: 3900 =SUMPRODUCT(C4:E6,C12:E14)
Supply Constraints
Factories Outflow Sign Capacity
Des Moines 100 <= 100
Evanston 300 <= 300
Ft Lauderdale 300 <= 300
Demand Constraints
Stores Inflow Sign Demand
Albany 300 >= 300
Boston 200 >= 200
Cleveland 200 >= 200
Plant 1 40 40 0 80
Plant 2 0 0 40 40
Plant 3 10 0 20 30
Requirements 50 40 60
Objective (Min)
Relocation Cost $ 2,400.00
Summary Sentence: The company should sen
to Miami, Smith to New York and Wilson to Om
a Total Relocation Minimum Cost of 240
Total sign equal
1 = 1
1 = 1
1 = 1
Distance Games
Kansas City Chicago Detroit Toronto
Seattle 1500 1730 1940 2070
Arlington 460 810 1020 1270
cities Oakland 1500 1850 2080 X
Baltimore 960 610 400 330
Assignment Games
Kansas City Chicago Detroit Toronto Total sign
Seattle 0 0 1 0 1 =
Arlington 0 1 0 0 1 =
cities Oakland 1 0 0 0 1 =
Baltimore 0 0 0 1 1 =
Total 1 1 1 1
<= <= <= <=
1 1 1 1
Objective Function (Min)
Total Distance 4580 Summary Sentence: The Crew in Seattle should
be sent to Detroit, the one in Arlington to
Chicago, the one in Oakland to Kansas City and
the one in Baltimore should be sent to Toronto
for a Total Minimum Distance of 4580 Miles.
equal
1
1
1
1
in Seattle should
in Arlington to
o Kansas City and
e sent to Toronto
e of 4580 Miles.
Courses
Statistics Management Finace Economics
professors
Bain 80 85 95 40
Carey 85 30 75 65
Dio 90 55 80 70
Powell 55 80 65 50
Courses
Statistics Management Finace Economics Total
professors
Bain 0 0 1 0 1
Carey 1 0 0 0 1
Dio 0 0 0 1 1
Powell 0 1 0 0 1
Total 1 1 1 1
sign = = = =
Equal 1 1 1 1
Objective (Max)
Total Ratings 330
Summary Sentence: Professor Bain should take The
Finance Course, Carey to take the statistics, Dio to
take Economics and Powell to take Management for
an Overall Rating of 330.
Sign Equal
= 1
= 1
= 1
= 1
Objective (Min)
Total Cost 5270
Summary Sentence: Factory 1 should send 30
jersies to Store A and 60 to Store B, Factory 2
should send 50 to Store A and 70 to Store C for
a Total Minimum Cost Of 5270$.
1 should send 30
tore B, Factory 2
d 70 to Store C for
Of 5270$.
Johns Hopkins Basketball jersey
TO Plants
A B C Transfer
Plant 1 5 8 6 60
From Plant 2 10 9 12 105
Plant 3 7 6 10 70
Open 45 90 35
TO Plants
A B C Transfer
Plant 1 0 60 0 60
From Plant 2 45 30 30 105
Plant 3 0 0 5 5
Open 45 90 35
Constraints; LHS
no more than 42 machine hours 3 1.5 42
24 of workers hours 1 3 24
Sign RHS
<= 42
<= 24
Princess Brides Example : Integer Programming
Objective (Max)
People Reached 37900
Objective (max)
Profit 3770
44 of 20lb Bags
rofit of 3770$.
Hila Hernandez
Objective (Max) 52
profit 5 7
Constraints LHS
4 Max large can be sold 1 2
up to 6 of small can be sold 1 6
max 15 hours a week 3 1.5 15
Variables: X1 X2 X3 X4 X5 X6 X7
(0,1) 0 0 1 1 1 1 0
50 80 90 120 110 40 45 (000s)
Objective(max)
Return 360 (000s)
Constraints LHS
at least 2 texas oil 1 1 1 2
no more 1 foreign 1 1 1
CA 1 1 1
Budget 480 540 680 1000 700 510 900 2890
Summary Sentence: We
Recommend Investing in Dutch
sell, Houston Drilling, Texas
Petroleum, San diego Oil for
Maximum Return 360000$.
Sign RHS
>= 2
<= 1
= 1
<= 3000
Horizon Wireless
Variables L1 L2 L3 L4 L5 L6
(0,1) 1 1 1 0 0 0
Objective (Min) 3
Summary Sentence: We
Recommend Builiding 3 towers in L1
L2 and L3.
RHS
1
1
1
1
1
1
1
1