Lecture_Non_Linear Programming
Lecture_Non_Linear Programming
Chapter 10
■ Constrained Optimization
10-2
Overview
10-3
Optimal Value of a Single Nonlinear Function
Basic Model
Profit function, Z, with volume
independent of price:
Z = vp - cf - vcv
where v = sales volume
p = price
cf = unit fixed cost
cv = unit variable cost
With fixed cost (cf = $10,000) and variable cost (cv = $8):
Profit, Z = 1,696.8p - 24.6p2 - 22,000
Figure 10.4
10-7
Constrained Optimization in Nonlinear Problems
Definition
10-8
Constrained Optimization in Nonlinear Problems
Graphical Interpretation (1 of 3)
Effect of adding constraints to nonlinear problem:
Figure 10.5 Nonlinear Profit Curve for the Profit Analysis Model
10-9
Constrained Optimization in Nonlinear Problems
Graphical Interpretation (2 of 3)
Figure 10.7
10-11
Constrained Optimization in Nonlinear Problems
Characteristics
10-12
Western Clothing Problem
Solution Using Excel (1 of 3)
Exhibit 10.1
10-13
Western Clothing Problem
Solution Using Excel (2 of 3)
Exhibit 10.2
10-14
Western Clothing Problem
Solution Using Excel (3 of 3)
Exhibit 10.3
10-15
Beaver Creek Pottery Company Problem
Solution Using Excel (1 of 6)
10-16
Beaver Creek Pottery Company Problem
Solution Using Excel (2 of 6)
Exhibit 10.4
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 10-17
Beaver Creek Pottery Company Problem
Solution Using Excel (3 of 6)
Exhibit 10.5
10-18
Beaver Creek Pottery Company Problem
Solution Using Excel (4 of 6)
Exhibit 10.6
10-19
Beaver Creek Pottery Company Problem
Solution Using Excel (5 of 6)
Exhibit 10.7
10-20
Beaver Creek Pottery Company Problem
Solution Using Excel (6 of 6)
Exhibit 10.8
10-21
Lagrange Multiplier
■ Lagrange multiplier, provides the dual value of the labor resource
■ Reflects the rate of change of the objective function with respect to
a small change in the constraint's right-hand side.
■ If you relax or tighten the constraint slightly:
■ How much the optimal value of the objective function would
increase (for maximization problems)
■ How much the optimal value of the objective function would
decrease (for minimization problems)
10-22
Interpretation of Values in the Sensitivity Report
■ Positive Lagrange multiplier: Indicates that
■ Increasing the constraint boundary would improve the objective
function value
■ Constraint is binding, meaning it directly impacts the solution.
■ provides the dual value of the labor resource
■ Zero Lagrange multiplier: Indicates that
■ Constraint is non-binding at the optimum (solution doesn’t
change if the constraint boundary is altered slightly)
■ The constraint is inactive at the optimal point
■ Objective function is unaffected by changes to this constraint.
10-23
Interpretation of Values in the Sensitivity Report
■ Negative Lagrange multiplier: Indicates that
■ Relaxing the constraint (e.g., loosening a minimum requirement)
would degrade the objective function)
■ Conversely, tightening the constraint could improve the objective.
■ In our example:
■ If the quantity of labor hours is increased from 40 to 41 hours, the
value of Z will increase by $0.33—from $70.42 to $70.75.
10-24
A Nonlinear Programming Model with Multiple
Constraints
Western Clothing Company example presented earlier, except now the
company produces two kinds of jeans, designer and straight-leg, and
production is subject to resource constraints for denim cloth, cutting
time, and sewing time. The company sells its jeans to several upscale
clothing store chains, and sales demand is dependent on the price at
which the company sells the jeans. The demand for designer jeans
(𝑥1 ) and the demand for straight-leg jeans (𝑥2 ) are defined by the
following relationships:
10-25
Western Clothing Company Problem
Solution Using Excel (1 of 4)
Maximize Z = (p1 - 12)x1 + (p2 - 9)x2
subject to:
2x1 + 2.7x2 6,000
3.6x1 + 2.9x2 8,500
7.2x1 + 8.5x2 15,000
where:
x1 = 1,500 - 24.6p1
x2 = 2,700 - 63.8p2
p1 = price of designer jeans
p2 = price of straight jeans
• Decision variables for this problem are 𝑝1 𝑎𝑛𝑑 𝑝2 , 𝑛𝑜𝑡 𝑥1 𝑎𝑛𝑑 𝑥2
• 𝑥1 & 𝑥2 , are functions of price and, thus, are dependent variables
• We did not substitute the functional relationships for 𝑥1 & 𝑥2 into
the objective function
10-26
Western Clothing Company Problem
Solution Using Excel (2 of 4)
Exhibit 10.9
10-27
Western Clothing Company Problem
Solution Using Excel (3 of 4)
Exhibit 10.10
10-28
Western Clothing Company Problem
Solution Using Excel (4 of 4)
Exhibit 10.11
10-29
Facility Location
■ Positive Lagrange multiplier: Indicates that
■ Increasing the constraint boundary would improve the objective
function value
■ Constraint is binding, meaning it directly impacts the solution.
■ provides the dual value of the labor resource
■ Zero Lagrange multiplier: Indicates that
■ Constraint is non-binding at the optimum (solution doesn’t
change if the constraint boundary is altered slightly)
■ The constraint is inactive at the optimal point
■ Objective function is unaffected by changes to this constraint.
10-30
Facility Location Example Problem
Problem Definition and Data (1 of 2)
• Centrally locate a facility that serves several customers or other
facilities in order to minimize distance or miles traveled (d) between
facility and customers.
• Distance formula for the straight line distance between two points
on a set of x, y coordinates is used (hypotenuse of a right triangle)
𝑑 = 𝑥𝑖 − 𝑥 2 + 𝑦𝑖 − 𝑦 2
Where:
(𝑥, 𝑦) = coordinates of proposed facility
(𝑥𝑖 , 𝑦𝑖 ) = coordinates of customer or location facility 𝑖
10-31
Facility Location Example Problem
Problem Definition and Data (1 of 2)
• Consider, for example, the Clayton County Rescue Squad and
Ambulance Service, which serves five rural towns, Abbeville,
Benton, Clayton, Dunning, and Eden. The rescue squad wants
to construct a centralized facility and garage to minimize its
total annual travel mileage to the towns.
• The locations of the five towns in terms of their graphical 𝑥, 𝑦
coordinates, measured in miles relative to the point 𝑥 = 0, 𝑦 = 0,
and the expected number of annual trips the squad will have to
make to each town are:
10-32
Facility Location Example Problem
Problem Definition and Data (1 of 2)
• The objective of the problem is to determine a set of coordinates
(𝑥, 𝑦) for the rescue squad facility that minimizes the total miles
traveled to the town
𝑑𝑖𝑡𝑖
Where:
𝑑𝑖 = 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒 𝑡𝑜 𝑡𝑜𝑤𝑛 𝑖
𝑡𝑖 = 𝑎𝑛𝑛𝑢𝑎𝑙 𝑡𝑟𝑖𝑝𝑠 𝑡𝑜 𝑡𝑜𝑤𝑛 𝑖
10-33
Facility Location Example Problem
Solution Using Excel
Exhibit 10.12
10-34
Facility Location Example Problem
Solution Map
10-36
Investment Portfolio Selection Example Problem
Definition and Model Formulation (1 of 2)
10-37
Investment Portfolio Selection Example Problem
Definition and Model Formulation (2 of 2)
■ The minimization of portfolio risk, as measured by the portfolio
variance, is the model objective
■ The variance, S, on the annual return from the portfolio is
determined by the following formula:
𝑺 = 𝒙𝟏𝟐𝒔𝟏𝟐 + 𝒙𝟐𝟐𝒔𝟐𝟐 + … + 𝒙𝒏𝟐𝒔𝒏𝟐 + 𝒙𝒊𝒙𝒋𝒓𝒊𝒋𝒔𝒊𝒔𝒋
i≠j
𝒙𝒊, 𝒙𝒋 = the proportion of money invested in investments 𝒊 𝒐𝒓 𝒋
𝒔𝒊𝟐 = the variance for investment 𝒊
𝒓𝒊𝒋 = the correlation between returns on investments 𝒊 𝒂𝒏𝒅 𝒋
𝒔𝒊, 𝒔𝒋 = the std. dev. of returns for investments 𝒊 𝒂𝒏𝒅 𝒋
▪ She has also estimated the covariances between the stocks, as follows
(on next slide):
10-40
Investment Portfolio Selection Example Problem
Solution Using Excel (1 of 5)
10-41
Investment Portfolio Selection Example Problem
Solution Using Excel (2 of 5)
Four stocks, desired annual return of at least 0.11.
Minimize
Z = S = x12(.009) + x22(.015) + x32(.040) + X42(.023)
+ x1x2 (.4)(.009)1/2(0.015)1/2 + x1x3(.3)(.009)1/2(.040)1/2 +
x1x4(.6)(.009)1/2(.023)1/2 + x2x3(.2)(.015)1/2(.040)1/2 +
x2x4(.7)(.015)1/2(.023)1/2 + x3x4(.4)(.040)1/2(.023)1/2 +
x2x1(.4)(.015)1/2(.009)1/2 + x3x1(.3)(.040)1/2 + (.009)1/2 +
x4x1(.6)(.023)1/2(.009)1/2 + x3x2(.2)(.040)1/2(.015)1/2 +
x4x2(.7)(.023)1/2(.015)1/2 + x4x3(.4)(.023)1/2(.040)1/2
subject to:
.08x1 + .09x2 + .16x3 + .12x4 0.11
x1 + x2 + x3 + x4 = 1.00
xi 0
10-42
Investment Portfolio Selection Example Problem
Solution Using Excel (3 of 5)
Exhibit 10.13
10-43
Investment Portfolio Selection Example Problem
Solution Using Excel (4 of 5)
Exhibit 10.14
10-44
Investment Portfolio Selection Example Problem
Solution Using Excel (5 of 5)
Exhibit 10.15
10-45
Hickory Cabinet and Furniture Company
Example Problem and Solution (1 of 2)
Model:
Maximize Z = $280x1 - 6x12 + 160x2 - 3x22
subject to:
20x1 + 10x2 = 800 board ft.
Where:
x1 = number of chairs
x2 = number of tables
10-46
Hickory Cabinet and Furniture Company
Example Problem and Solution (2 of 2)
10-47
Problem 1
𝑴𝒂𝒙 𝒁 = 𝒗𝒑 − 𝑪𝒇 − 𝒗𝑪𝒗
10-48
Problem 5
10-49
Problem 14
10-50
10-51
10-52
Problem 18
10-53
10-54
Problem 21
10-55
10-56