资源描述:
《实验-无约束优化》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、实验7无约束优化化工系宋劲2011011842第一题【实验描述1】取不同的初值计算下列非线性规划,尽可能求出所有局部极小点,进而找出全局极小点,并对不同算法(搜索方向、探索步长、数值梯度与分析梯度等)的结果进行分析、比较:minz=x1x221-x12[1-x1-x21-x15]2【实验过程1】1.令fun72函数为f(x1,x2)=x1x221-x12[1-x1-x21-x15]2为了直观认识函数,先画出其三维图形,取两自变量均在[-1.5,4]范围内。2.看z坐标可知此时取的自变量范围太宽,应缩小范围寻找最小值取[x,y]=meshgrid(-0.1:0.01:
2、1.1,-0.1:0.01:1.1)(x为以上x1,y为以上x2)无论从图像上看还是从表达式上看,都很容易得知全局极小点不可能出现在x,y很大的位置。由等高线可以看出最小值在x1=1或0或x2=0的附近。3.尝试取不同初值找局部极小点,取x0=[-0.5:0.05:1.5,-0.5:0.05:1.5]看这些不同初值对应的局部极小点位置特点4.对不同算法做对比5.用分析方法计算梯度再求解【结果分析1】1.直观认识函数,三维视图SafetySupervisionBureauoftheparty'smasslineeducationalpracticereformprog
3、ramtopromotetheimplementationoftherectification,establishanewsystemtowork,inaccordancewiththerequirementsofthecountyPartycommittee,CountySafetySupervisionBureauleadershipcheckoutthe"fourwinds"thereareproblems,makethefollowingimplementationoftherectificationprogram.First,theguidingideol
4、ogyandbasicprinciplesof(a)guidethought:theparty'seighteen,theeighteensessionofthesecond,theThirdPlenarySessionofthespiritasaguide,conscientiouslyimplementthespiritofgeneralsecretaryXiJinping'simportantspeechseries,instrictaccordancewiththe"lookinthemirror,dressup,washbath,curetreatment
5、,thegeneralrequirements,focusonmaintainingtheparty'sadvancednatureandpurity,closelylinkedtothepeopleandpragmaticcleanthemainAndlookinthemirror,dressup,washbath,curetreatment,thegeneralrequirementsof"focustosolvethefourwindsissue,thepriorityamongprioritiesrectificationasfirmlyputthefour
6、winds,thesystemconstructionisthefundamentalstrategyofthecomprehensivewipeouttherootcause,inordertopromotetheimplementationoftherectificationandtheestablishmentoftheworktoensurethateducationalpracticefromstarttofinish,goodtodogood,credibility,benefitthemasses,promotethesustainedandhealt
7、hydevelopmentoftheworkofproductionsafetyscience(two).Basicprinciples:1,adeepunderstandingofthebasicprinciplesofcarryingouttheparty'smasslineeducationalpractice:oneisthecentraladheretopositiveeducation,twoistoinsistoncriticismandselfcriticismThree,adheretothepragmatic,fouristoadhereto