Title: p=q=0??????
1??????????
- ????????????
- ????
- ??????
- ??????
2????????????
3?????
pq0??????
???????
x???(??)???
x?????(??)???
x??????
x????????
??????????
4??????????
???????
?????
5??3 ????
??????(???\????\????)?
6??1
??
??4 ??????
7??2
??
?????????
??3
8?????
???
????
?????
?f(x)????,S???,
???????????!
????
?i1,2,,p?????,?ip1,,pq???????
9(No Transcript)
10?????
?????
????????????x????,?
x???(???)
???????????x??????????
11??????????????
????
12??????????????
???????????
13??????????????
????????(?)????!
14????????!
??7. ????(????????)active constraint
?x??
???x?ci(x)?????
???
x????????
15???????????
Karush-Kuhn-Tucker ??KKT??
?????
16Lagrange??
Lagrange??
??????
Karush-Kuhn-Tucker??KKT??
????????(??)??
17???????????
????
??
?
?????????????
??
????!
18??????????
Karush-Kuhn-Tucker??KKT??
19???????
?? (Fritz John??)
20Fritz John ???KKT????? Fritz John
??????w00??????Fritz John ??????????????????,????
???????????????????,?????????,??????????????w0?0??
?,?????? w0?0 ,???????????????????????????????????
,???????????????????,??????KKT???
21???????
1) ?????????????KKT??????
2) ????????????KKT??
?????????????????????????(Farkas??
???????????????,????????????????,???????Langrang
e??
22? ???????
23(No Transcript)
24(No Transcript)
25(No Transcript)
26???????
????
?????
??????????
????
????????????
27???????
????
?????
??????????
??????????
???
???
??
28????
29??????
????
x???????y??,???F???? y???????x??,???F????
???????????
??????
??????
????
?????
????
30??????????
31??????
???
???? ?
??(x,y)???????
????
?????
????
???????
?????
32Lagrange??
???
Lagrange??
???
Lagrange??
????
?????
???
????
33Lagrange????
34??
35(No Transcript)
36(No Transcript)
37Lagrange????????
???????
f?g???,h??
????????????,???????,?
1)??????,????????
2)???????????????,?????????????????????????(?????
0).
3)???????,?????????????,?????????
?1)???????????
??KKT?????
??????!
?2)?????????
38Wolfe??
???????
f?g???,h??
Lagrange??
Wolfe??
Wolfe???????????,???????,?
1)??????,????????
2)???????????????,?????????????????????????(?????
0).
39???????(Q??)
????(Q??)
???
???
Lagrange??
???????Lagrange??
??????????? (???????)?6?
40????
41?????
1?????
??????????????????????????(Sequential
Unconstrained Minimization Technique - SUMT)
2?????
3???
424????(???????)
43(No Transcript)
44(No Transcript)
45(1)????
46(2)????(???)
47(3)?????
yes
No
48(4)??????
49?
50??P207?2??2??????!
51(5)????????
52(6)?????
??P202,??8.1,??8.2.
??P203, ??8.4.
535????(?????)
(1)????
54(2)????
???(?????)????????????????,???????????????????
?,?????????????????,???????????,??????????
????????????????,?????????????????????????????
?????
55(3)????
56(No Transcript)
57(4)????(???)
58?????
yes
No
59?
?
60??????????
?????P217-218.
61(5)?????
(6)???????
62(7)????????????
???
???
1. x(0)?S 0(??P220???????) 2.??????? 3.????B(x)
?S 0??????gi(x)??(?????????????) 4.???x(k)?R
(????x(k)x) 5.??????
1.??x(0)?Rn 2.?????? 3.?????????S???????
4.???x(k) Ï R 5.??????
??P246. 1,2,4,7,8,9,10.
636. ???
(1)????
?????
??????Langrange??????????????
64?????
65(2)????????
66????(??????)
67?????x (0.25, 0.75),???????????? ????????
? ??
?1. ????????????
???????
2. ???????????
???????
68 ?????,xk? xk ??x??????,??????6???????????15?
??. ??,???????????????u153276.8,???????????u
66.4. ????,??????????????,????????????.
69Matlab?????????
?? x?b?beq?lb?ub???,A?Aeq???,C(x)?Ceq(x)????????,
f(x)?????,f(x)?C(x)?Ceq(x)?????????
70?? fmincon ?? x fmincon(fun,x0,A,b) x
fmincon(fun,x0,A,b,Aeq,beq) x
fmincon(fun,x0,A,b,Aeq,beq,lb,ub) x
fmincon(fun,x0,A,b,Aeq,beq,lb,ub,nonlcon) x
fmincon(fun,x0,A,b,Aeq,beq,lb,ub,nonlcon,options)
x,fval fmincon() x,fval,exitflag
fmincon() x,fval,exitflag,output
fmincon() x,fval,exitflag,output,lambda
fmincon() x,fval,exitflag,output,lambda,grad
fmincon() x,fval,exitflag,output,lambda,grad,hes
sian fmincon()
71?1
? (1)??????
72(2)???M-?? fun1.m function ffun1(x)
f-x(1)-2x(2)(1/2)x(1)2(1/2)x(2)2
(3)??????youh1.m x011 A2 3 1
4 b65 Aeqbeq LB00
UB x,fvalfmincon('fun1',x0,A,b,Aeq,beq,L
B,UB)
(4)????????youh1,?????? x 0.7647
1.0588 fval -2.0294
73???????????
(1)?MATLAB??????????????? function c,
ceqnlcon (x) c(x(1)-1)2-x(2) ceq
?????
74(1)?MATLAB??????????????? function c,
ceqnlcon (x) c(x(1)-1)2-x(2) ceq
?????
(2)??????????????M?? fun2'x(1)2x(2)2-x(1)x(2
)-2x(1)-5x(2)' ???? x00 1 A-2 3
??????? b6 Aeq ??????? beq lb
x?????? ub x,fval,exitflag,output
,lambda,grad,hessian fmincon(fun2,x0,A,b,Aeq,beq
,lb,ub,_at_nlcon)
75???? x 3 4 fval -13 exitflag
??? 1 output iterations 2
funcCount 9 stepsize 1
algorithm 'medium-scale SQP, Quasi-Newton,
line-search' firstorderopt
cgiterations lambda lower 2x1
double x??????,??lambda.lower????
upper 2x1 double x??????,?0???????
eqlin 0x1 double ??????????,??0???????
eqnonlin 0x1 double ????????????
ineqlin 2.5081e-008 ????????????
ineqnonlin 6.1938e-008 ????????????? grad
???????????? 1.0e-006 -0.1776
0 hessian ??????????Hessian? 1.0000
-0.0000 -0.0000 1.0000
76??????(quadratic programming)?Matlab?
77?? quadprog
?? x quadprog(H,f,A,b) ??H,f,A,b????????,x?
????????? x quadprog(H,f,A,b,Aeq,beq)
Aeq,beq???????
x quadprog(H,f,A,b,Aeq,beq,lb,ub)
lb,ub????x????? x quadprog(H,f,A,b,Aeq,beq,lb,ub
,x0) x0?????? x quadprog(H,f,A,b,Aeq,beq,lb,u
b,x0,options) options???????? x,fval
quadprog() fval???????? x,fval,exitflag
quadprog() exitflag???????????? x,fval,exitf
lag,output quadprog() output????????????
x,fval,exitflag,output,lambda quadprog()
lambda????????????
78?MATLAB????? H 1 -1 -1 2 f -2 -6 A
1 1 -1 2 2 1 b 2 2 3 lb
zeros(2,1) x,fval,exitflag,output,lambda
quadprog(H,f,A,b, , ,lb)
79(No Transcript)