最速下降法与牛顿法结合求无约束最优值(Unconstrained optimization by combining steepest descent method with Newton method).doc
- 1、本文档共8页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
最速下降法与牛顿法结合求无约束最优值(Unconstrained optimization by combining steepest descent method with Newton method)
最速下降法与牛顿法结合求无约束最优值(Unconstrained optimization by combining steepest descent method with Newton method)
The steepest descent method combines Newtons method with an unconstrained optimal value,.Txt, to value life -- God keeps you alive, and certainly has his plans. Lei Feng does good without seeking recognition, but everything diary. Ha ha, I have achieved the steepest descent French Newton combination, and can also animate the iterative process of solving its optimal value. Have been implemented on the program. (matlab) when running, the steepest descent accuracy should not be too small, and the Newton accuracy at the back can be taken as an arbitrary value.
Tic
CLC; clear;
SYMS X1 x2
G=[];
G=input (` enter, want x1^2, x2^2, x1*x2, x1, X2, constant coefficients, such as [1,2,3,4,5,6] coefficient vector = = );
A=G (1,1); b=G (1,2); c=G (1,3); d=G (1,4); e=G (1,5); g=G (1,6);
F=a*x1^2+b*x2^2+c*x1*x2+d*x1+e*x2+g;
% draw the original image
Figure;
X11=-100:0.5:100;
X22=x11;
[x11, x22]=meshgrid (X11, X22);
F11=a.*x11.^2+b*x22.^2+c*x11.*x22+d.*x11+e.*x22+g;
Surf (F11), grid, on, hold, on;
% draw the original image
Df1=diff (F, x1); df2=diff (F, x2);% for function first order
DF=[df1; df2];
Df11=diff (DF1, x1); df12=diff (DF1, X2);
Df21=diff (df2, x1); df22=diff (df2, x2);%; here, the two derivative of the function is obtained
DEE=[df11, DF12, DF21, df22];
X=input (\ enter the initial value of X is x=[x1, x2], x=: );
X=x;
E=input (enter the precision of the steepest descent method you want (usually 3~5) E=: ;
%, here are some calculations of the relevant initial values
T=[];
D=T;
T ((1) =subs (DF, [x1, x2],, [x (1), X (2))];
TH=subs (DEE, [x1, x2], [x (1), X (2));
%, here are some calculations of the relevant initial values
Disp (because you enter the initial value, here will start the steepest descent search: );
For k=1:100000
D ((1) =-T (: 1);%d (k) is x (k+1), =x (k), +A (k), *d (k)
A (1) = (T ((1)*T) (/: 1)) / (T ((:) 1)*TH*T ((: 1));
TH=subs (DEE, [x1, x2], [x (1, K),
您可能关注的文档
- 快题设计注意事项(Quick question design notice).doc
- 怎样养成好习惯(How do you form good habits).doc
- 怎样复习(How to review).doc
- 怎样削螺旋桨(航模制作)(How to cut propellers).doc
- 怎样强化园林绿化施工及管理(How to strengthen the construction and management of landscaping).doc
- 怎样打尼拉塞克a5key_kn面面观(How do I play Nila Seck a5key_kn).doc
- 怎样提高口语水平(How to improve oral English).doc
- 怎样提高太极拳水平(How to improve Taijiquan level).doc
- 怎样提高赏石水平(How to improve the level of Mr.).doc
- 怎样正确地制定年度营销预算(How to formulate annual marketing budget correctly).doc
- 月相与日期(The moon and the date).doc
- 月薪2000元如何理财(Monthly salary of 2000 yuan, how to finance).doc
- 月租50万美元的公寓(An apartment of $500 thousand a month).doc
- 有人问我公理和正义的问题[杨牧](I have been asked questions of justice and justice).doc
- 有关三八妇女节名言(38 women's day quotes).doc
- 有关英语你不知道的诀窍(A trick you don't know about English).doc
- 有心曲线定点弦的一个独特现象(A unique phenomenon of fixed chord of fixed curve).doc
- 有机热载体炉操作规程(Operation regulation of organic heat carrier furnace).doc
- 有源嵌位pwm控制器lm5025原理及应用(Principle and application of active position locked PWM controller lm5025).doc
- 有色金属] 铝的矿物原料特点(Characteristics of mineral materials for aluminium in non ferrous metals]).doc
文档评论(0)