最优化方法及其matlab程序设计 马昌凤 课后答案(5)
发布时间:2021-06-07
发布时间:2021-06-07
最优化方法及其matlab程序设计 马昌凤版 课后答案 杭电课件
k=k+1;G(k,:)=[a,p,q,b];end
ds=abs(b-a);dphi=abs(phib-phia);if(phip<=phiq)s=p;phis=phip;else
s=q;phis=phiq;endE=[ds,dphi];
运行:[s,phis,k,G,E]=golds(inline(′s3 2 s+1′),0,3,0.15,0.01);结果ak,pk,qk,bk
01.14591.85413.000000.70821.14591.854100.43770.70821.14590.43770.70820.87541.14590.70820.87540.97871.14590.70820.81150.87540.97870.70820.77210.81150.87540.77210.81150.8359
0.8754
[s,phis,k,G,E]=golds(inline(′s3 2 s+1′),0,3,0.15,0.001); GG=
5
(6)
下一篇:2010年药剂科工作总结