欢迎来到天天文库
浏览记录
ID:56759639
大小:53.00 KB
页数:3页
时间:2020-07-07
《机械优化设计课后程序考核题.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、机械优化设计程序考核题1、一维搜索方法程序考核题最优解:to=5.0000fo=112、无约束优化方法程序考核题初始点:最优解:运行结果:Warning:Gradientmustbeprovidedfortrust-regionmethod;usingline-searchmethodinstead.>Infminuncat241Optimizationterminated:relativeinfinity-normofgradientlessthanoptions.TolFun.Computingfini
2、te-differenceHessianusinguser-suppliedobjectivefunction.x=5.00006.0000fval=1.9895e-012exitflag=1output=iterations:7funcCount:24stepsize:1firstorderopt:2.8610e-006algorithm:'medium-scale:Quasi-Newtonlinesearch'message:'Optimizationterminated:relativeinfinit
3、y-normofgradientlessthanoptions.TolFun.'grad=1.0e-005*0.0763-0.2861hessian=8.0000002.00003、约束优化方法的程序考核题s.t.初始点:最优解:运行结果:Warning:Large-scale(trustregion)methoddoesnotcurrentlysolvethistypeofproblem,switchingtomedium-scale(linesearch).>Infminconat260c=6c=6.0
4、000c=6.0000c=2.0000c=2.0000c=2.0000c=9.9341e-009c=3.9736e-008c=-4.9671e-009Optimizationterminated:first-orderoptimalitymeasurelessthanoptions.TolFunandmaximumconstraintviolationislessthanoptions.TolCon.Activeinequalities(towithinoptions.TolCon=1e-006):lowe
5、rupperineqlinineqnonlin11x=1.00001.0000fval=1.0000exitflag=1output=iterations:2funcCount:11stepsize:1algorithm:'medium-scale:SQP,Quasi-Newton,line-search'firstorderopt:6.6227e-009cgiterations:[]message:[1x143char]lambda=lower:[2x1double]upper:[2x1double]eq
6、lin:[0x1double]eqnonlin:[0x1double]ineqlin:0.6667ineqnonlin:0.6667grad=-2.00000.0000hessian=1.20000.40000.40001.8000
此文档下载收益归作者所有