Topic 7 Chap08 NLP
Topic 7 Chap08 NLP
Feasible Feasible
Region Region
objective function
level curve objective function
level curves
optimal solution
optimal solution
Feasible
Region
Feasible
Region
nonlinear objective, nonlinear objective,
nonlinear constraints linear constraints
An NLP Solution Strategy
X2 C D
B E
objective function
level curves
Feasible
Region
A
(the starting point)
X1
Local vs. Global Optimal Solutions
X2
Local optimal solution
C
Local and global
F optimal solution
E
Feasible Region
G
B
A
D
X1
1. The Economic Order Quantity
(EOQ) Problem
A common business problem
Determining the optimal quantity to purchase
when orders are placed.
EOQ problem assumptions:
– Demand (or use) is constant over the year.
– New orders are received in full when the
inventory level drops to zero.
The EOQ Problem
Large orders (fewer purchase orders) result in:
– higher inventory levels & carrying costs
– infrequent orders & lower ordering costs
Small orders (more purchase orders) result in:
– low inventory levels & carrying costs
– frequent orders & higher ordering costs
7
Sample Inventory Profiles
Inventory
60
Annual Usage = 150 Number of Orders = 3
50 Order Size = 50 Avg Inventory = 25
40
30
20
10
0
0 1 2 3 4 5 6 7 8 9 10 11 12 Month
Inventory
60
Annual Usage = 150 Number of Orders = 6
50 Order Size = 25 Avg Inventory = 12.5
40
30
20
10
0
0 1 2 3 4 5 6 7 8 9 10 11 12 Month
The EOQ Model
Three kinds of costs:
1. Payment for goods Total: 1+2+3
2. Ordering cost
3. Carrying cost
D Q
Total Annual Cost = DC S Ci
Q 2
where:
D = annual demand for the item
C = unit purchase cost for the item
S = fixed cost of placing an order
i = cost of holding inventory for a year (expressed as a
% of C)
Q = order quantity
EOQ Cost Relationships
$
1000
600
Distance X 1 X 2 Y1 Y2
2 2
A Location Problem:
Rappaport Communications
The company is planning to offer cellular
service to several cities.
They want to expand to provide inter-city
service between four cities in northern Ohio.
A new communications tower must be built to
handle these inter-city calls.
The tower needs to be located within 40 miles
of each of these cities. (40 miles - the limit of
the broadcast radius of the new equipment)
Graph of the Tower Location Problem
Y
50
Cleveland
x=5, y=45
40
30
Youngstown
Akron
x=12, y=21 x=52, y=21
20
10
Canton
x=17, y=5
0
20 30 40 50 60
X
0 10
Defining the Decision Variables
5-X
1
2
45 Y
1
2
12 - X
1
2
21 Y
1
2
MIN:
17 - X
1
2
5 Y
1
2
52 - X
1
2
21 Y
1
2
Defining the Constraints
Cleveland
5 - X12 45 Y1 2 40
Akron
12 - X
1
2
21 Y
1
2
40
Canton
17 - X
Youngstown
1
2
5 Y
1
2
40
52 - X
1
2
21 Y
1
2
40
Implementing the Model
See file Fig8-10.xlsm
Analyzing the Solution
The optimal location of the “new tower” is in the
same location as the existing Akron tower.
Maybe they should just upgrade the Akron
tower.
The maximum distance is 39.8 miles to
Youngstown (near 40 mile transmission radius).
Better to have a safety distance to ensure
quality and reliability during inclement weather.
Where should we locate the new tower if we
want to minimize the maximum distance from
the new tower to each of the existing towers?
Defining the Constraints
Cleveland
5 - X12 45 Y1 2 40
Akron
12 - X
1
2
21 Y
1
2
40
Canton
17 - X
Youngstown
1
2
5 Y
1
2
40
52 - X
1
2
21 Y
1
2
40
22
Objective function
Min: D
Cleveland
5 - X12 45 Y1 2 40D
Akron
12 - X
1
2
21 Y
1
2
D
40
Canton
17 - X
Youngstown
1
2
5 Y
1
2
D
40
52 - X
1
2
21 Y
1
2
D
40
23
Implementing the Model
Revise the file Fig8-10.xlsm
COMPARISON OF THE TWO SOLUTIONS
Los
Angeles 0.002 0.009 0.010
1 Phoenix 0.005 0.006
4
-1
0.004 0.002
0.002 Lubbock
0.003 9
Las
San 0.003 Cruces
Diego Tucson 7
3 5
0.010
MAX: (1-P12Y12)(1-P13Y13)(1-P14Y14)(1-P24Y24)…(1-
P9,10Y9,10)
where:
Pij = probability of having an accident while
traveling between node i and node j
Defining the Constraints
Flow Constraints
-Y12 -Y13 -Y14 = -1 } node 1
+Y12 -Y24 -Y26 = 0 } node 2
+Y13 -Y34 -Y35 = 0 } node 3
+Y14 +Y24 +Y34 -Y45 -Y46 -Y48 = 0 } node 4
+Y35 +Y45 -Y57 = 0 } node 5
+Y26 +Y46 -Y67 -Y68 = 0 } node 6
+Y57 +Y67 -Y78 -Y79 -Y7,10 = 0 } node 7
+Y48 +Y68 +Y78 -Y8,10 = 0 } node 8
+Y79 -Y9,10 = 0 } node 9
+Y7,10 +Y8,10 +Y9,10 = 1 } node 10
Implementing the Model
See file Fig8-15.xlsm
Comments on Nonlinear Network Flow Problems
0.6000
0.3000
0.2000
0.1000
0.0000
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Engineers Assigned
Defining the Decision Variables
1,if project i is selected
Yi i 1, 2, 3, ..., 6
0,otherwise
39
Follow-up question #2
Suppose a gift shop in Myrtle Beach has an annual
demand for 15,000 units for a souvenir kitchen magnet
that it buys for $0.50 per unit. Assume it costs $10 to
place an order and the inventory carrying cost is 25% of
the item’s unit cost. Use Solver to determine the optimal
order quantity if the company wants to minimize the total
cost of procuring this item.
a. What is the optimal order quantity?
b. What is the total cost associated with this order
quantity?
c. What are the annual order and annual inventory
holding costs for this solution?
40
Follow-up question #3
41