最速下降法与牛顿法结合求无约束最优值(Unconstrained optimization by combining steepest descent method with Newton method).docVIP
- 1、本文档共8页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
最速下降法与牛顿法结合求无约束最优值(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
- 江西省赣州市2024-2025 学年高二下学期期末考试语文试卷(含答案).docx
- 湖北省襄阳随州部分高中2024-2025学年高二下学期6月期末联考英语试卷(含答案).docx
- 2024-2025学年陕西省咸阳市永寿县中学高一下学期第三次月考英语试题(含答案).docx
- 江苏省常州市前黄中学2025届高三下学期一模适应性考试语文试题(含答案).docx
- 陕西省宝鸡市渭滨区2024-2025学年高一下学期期末质量监测语文试卷(含答案).docx
- 江苏省盐城市2024-2025 学年高二下学期期末考试语文试题(含答案).docx
- 天津市滨海新区油田三中2024-2025学年高二下学期3月考试英语试卷(含答案).docx
- 江苏省宿迁市文昌高级中学2024-2025学年高一下学期期中考试语文试卷(含答案).docx
- 广西来宾市忻城县高级中学2024-2025学年高一下学期5月期中语文试卷(含答案).docx
- 2025年黑龙江省龙东地区中考语文真题(原卷版+解析版).docx
最近下载
- 小学社会实践活动传统节日习俗体验对文化认同感的培养教学研究课题报告.docx
- GCP文件体系培训质量管理制度和SOP试题.docx VIP
- (高清版)DT 1022-2009 乡(镇)土地利用总体规划制图规范.pdf VIP
- 顶管施工控制要点PPT课件.pptx VIP
- 国有企业合规管理手册.pdf VIP
- 风机吊装施工方案(单叶片吊装).pdf VIP
- 桃树栽培技术完整版必威体育精装版精选PPT课件.ppt VIP
- (高清版)B-T 23821-2022 机械安全 防止上下肢触及危险区的安全距离.pdf VIP
- GCP文件体系培训质量管理制度和SOP试题 .pdf VIP
- 2025届天津市南开区翔宇学校六年级下学期小升初招生数学试卷含解析.doc VIP
文档评论(0)