NLP Lecture A
NLP Lecture A
Overview
■ Problems that fit the general linear programming format
but contain nonlinear functions are termed nonlinear
programming (NLP) problems.
■ Solution methods are more complex than linear
programming methods.
■ Determining an optimal solution is often difficult, if not
impossible.
■ Solution techniques generally involve searching a solution
surface for high or low points requiring the use of advanced
mathematics.
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
4
Optimal Value of a Single Nonlinear Function
With fixed cost (cf = $10,000) and variable cost (cv = $8):
Profit, Z = 1,696.8p - 24.6p2 - 22,000
5
Optimal Value of a Single Nonlinear Function
Maximum Point on a Curve
■ The slope of a curve at any point is equal to the derivative of
the curve’s function.
■ The slope of a curve at its highest point equals zero.
6
Optimal Value of a Single Nonlinear Function
Solution Using Calculus
Z = 1,696.8p - 24.6p2 - 2,000
dZ/dp = 1,696.8 - 49.2p
=0
p = 1696.8/49.2
= $34.49
v = 1,500 - 24.6p
v = 651.6 pairs of jeans
Z = $7,259.45
7
Constrained Optimization in Nonlinear
Problems Definition
8
Constrained Optimization in Nonlinear Problems
Graphical Interpretation (1 of 3)
Effect of adding constraints to nonlinear problem:
9
Constrained Optimization in Nonlinear Problems
Graphical Interpretation (2 of 3)
10
Constrained Optimization in Nonlinear Problems
Graphical Interpretation (3 of 3)
Figure
11
Constrained Optimization in Nonlinear Problems
Characteristics
12
NONLINEAR PROGRAMMING
If any or all of mathematical programming functions
(objective function and constraint functions) are nonlinear
then we deal with it as Nonlinear Programming Problem
(NLP).
General Formulation:
Max or Min f(xi) i=1,2,3….n
s.t. gj(xi) (, , or =) bj j=1,2,3….m
f(xi) and g(xi) are functions of the n variables.
Convex Function: Suppose f”(x) exists for all x. Then f(x) is a convex
function if and only if f”(x) 0 for all x.
Concave Function: Suppose f”(x) exists for all x. Then f(x) is a concave
function if and only if f”(x) 0 for all x.
Hessian Matrix: The Hessian of f(x1,x2,x3,….,xn) is the nxn matrix whose
ijth entry is
2 f
xi x j
13
Examples of Convex and Concave Functions
1. f(x)= x2 is a convex function
f”(x)=2 0, so f(x) is convex
14
local max and
global max
local max
15
Global Optimum
A univariate function with a negative second derivative
everywhere guarantees a global maximum at the point
(if there is one) where f’(X)=0. These functions are
called “concave down” or sometimes just “concave.”
16
Types of NLP:
f(x)
Unconstrained Optimization:
Max f(xi)
f’(xi) = 0
If it is a concave function.
x
Equality Constraint:
Max f(x)
f(x)
s.t. x=3
X=3 x
17
Lagrange Multipliers: Lagrange multipliers can be used to solve NLPs.
Consider NLP:
L L L L L L
...... ......... 0
x1 x2 xn 1 2 m
18
Solve the following nonlinear programming using Lagrangean method:
19