• Keine Ergebnisse gefunden

Numerische Verfahren der restringierten Optimierung

N/A
N/A
Protected

Academic year: 2021

Aktie "Numerische Verfahren der restringierten Optimierung"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Universität Konstanz Wintersemester 16/17 Fachbereich Mathematik und Statistik

Prof. Dr. Stefan Volkwein Jianjie Lu, Sabrina Rogg

Numerische Verfahren der restringierten Optimierung

http://www.math.uni-konstanz.de/numerik/personen/volkwein/teaching/

Program 3 (6 Points)

Submission by E-Mail to jianjie.lu@uni-konstanz.de: 07.02.2017, 10:00 h Given the nonlinear optimization problem

min1

2x>Qx+x>d subject to Ax+F(x) =b,

where Q ∈ Rn×n, d ∈ Rn, A = [B|N] ∈ Rm×n with B ∈ Rm×m invertible, F : Rn → Rm a nonlinear function and b ∈ Rm. Implement the SQP method to solve this problem by following Algorithm 4.3. To solve subproblem (4.5) use the routinemyquadprog from the first programming exercise. Name your function

[x,lambda] = mysqp(Q,d,A,b,Nonlin,x0,lambda0,tol,maxiter).

The input parameters x0, lambda0, tol and maxiter are the same as for the function mylinprog from Program 2. The parameter Nonlin is a structure containing function handles F, Fp and Fpp in the form:

Nonlin.F=F(x), Nonlin.Fp=∇F(x) and Nonlin.Fpp=λ>2F(x).

In case that Fpp is not given your program should implement a damped BFGS updating of the form (4.16) to approximate ∇xxL(x, λ), where B0 = Q is used (Hint: Use the commands fieldnames and ismember).

Test your codes with the following settings:

Q=

I 0 0 νI

, d= −z

0

, A = L −I

, b = 0, F(x) = (x31, . . . , x3m)>

with

L= 1 h2

2 −1

−1 2 −1 . .. ... ...

−1 2 −1

−1 2

∈Rm×m, I =

 1

. ..

1

∈Rm×m

and zi = 18sin(xi)(17ν −60νcos(2xi) + 3νcos(4xi) + 8) for xi = ih, i = 1, . . . , m and h= 2π/(m+ 1). Further setν = 10−4. As a stopping criteria for the SQP method choose k∆xk2 < tol with tol = 10−6 and set maxiter = 20. Try different values for m (i.e.

50, 100, 500, 1000, 1500). Compare the performance of the SQP and the SQP-BFGS implementation. Don’t forget to check the dimensions of the input arguments and inform the user if maxiteris reached. In the written report give some details on the derivatives.

Referenzen

ÄHNLICHE DOKUMENTE

Universität Konstanz Wintersemester 14/15 Fachbereich Mathematik und

Stop the algorithm if maxiter is reached and provide the user with a corresponding note. Additionally submit a script file called mymain.m to run the above

Universität Konstanz WS 12/13 Fachbereich Mathematik und StatistikS. Show that the set of global solutions

Universität Konstanz WS 12/13 Fachbereich Mathematik und

Universität Konstanz WS 12/13 Fachbereich Mathematik und

Universität Konstanz WS 12/13 Fachbereich Mathematik und

Universität Konstanz WS 12/13 Fachbereich Mathematik und

The report should contain all answers to the programming homework and interpretations of the obtained results.. • Only running programs will be considered