NLP Lecture Note
NLP Lecture Note
1
Chapter 1
(U P ) : minn f (x), f : Rn → R
x∈R
hj (x) = 0, j = 1, 2, ..., k
x ∈ Rn , f, gi , hj : Rn → R
If all f, gi and hj are linear functions then (CP ) is linear programming problem. If
at least one of these is a nonlinear function then (CP ) is a nonlinear programming
problem. If all f, gi and hj are convex functions then (CP ) is a convex programming
problem.
Note 1.1. Definiteness of a symmetric real matrix A = (aij )n×n is determined as follows.
Suppose rank of A = r, signature of A = s. λi are Eigen values. Definiteness of the
quadratic form xT Ax is same as definiteness of the matrix A.
3
4 Chapter 1. Solution of General Nonlinear Programming Problem
1.0.1 Solution of CP
1 T
min x Qx s.to Ax = b
2
....
....
Solution of this problem can be found analytically by solving the optimization prob-
lem:
min k Ax − b k22
x∈Rn
This is equivalent to
m X
X n
minn ( aij xj − bi )2
x∈R
i=1 j=1
6 Chapter 1. Solution of General Nonlinear Programming Problem
min f (x)
subject to g1 (x) ≤ 0
g2 (x) ≤ 0
.....
gm (x) ≤ 0
h1 (x) = 0
h2 (x) = 0
.......
hk (x) = 0
Pm Pk
∇x L(x, λ, µ) = ∇x f (x) + i=1 λi ∇x gi (x) + j=1 µj ∇x hj (x)
∇x L(x, λ, µ) = 0
gi (x) ≤ 0, i = 1, 2, ..., m
hj (x) = 0, j = 1, 2, ..., k
λi .gi (x) = 0 ∀ i
λi ≥ 0, µj ∈ R, ∀ i, j, (λ, µ) 6= 0
1.1 Example
Example 1. Write all necessary and sufficient conditions for the existence of a local
optimal solution of the following problem at (1, 1) and verify if these are satisfied or
not.
min x3 y 5 − 3x2 + 2y s.to 3x + 2y 2 ≤ 6, x2 + y ≤ 2, 3x − 2y = 1
2. Convexity condition:
5. Regularity condition: {∇g1 (1, 1), ∇g2 (1, 1), ∇h(1, 1)} is a linearly dependent
set. So regularity condition is not satisfied.
7 + 3λ1 + λ2 + 3µ = 0
4 − 2λ1 + 3λ2 + µ = 0
−26
Since λ2 = 0 so solution of this system is λ1 = 95 , µ = 9
. Hence dual restriction
is satisfied.
Since some optimality conditions are not satisfied so (1, 1) is not a solution.
1.2 Exercise
1. Consider the following two non linear optimization problems.
(i)Verify both necessary and sufficient optimality conditions at (1,1,1) for (P1 )and
at (1,-1,0 )for (P2 ) respectively.
(ii)Verify if (P3 ) is a convex quadratic programming problem or not.
Subject to 3x21 + x2 x3 ≥ 4
2x2 − 3x23 ≤ 6
Subject to 3x21 + x2 x3 ≥ 3
2x2 − 3x23 ≤ 6, x1 ≥ 0
Subject to x1 + 2x2 ≤ 4
2x1 + x2 ≤ 5
x1 , x2 ≥ 0
Subject to 3x21 + x2 x3 ≥ 4
x1 + 5x2 − 3x3 = 6