無(wú)約束優(yōu)化算法:?jiǎn)渭冃畏╛第1頁(yè)
無(wú)約束優(yōu)化算法:?jiǎn)渭冃畏╛第2頁(yè)
無(wú)約束優(yōu)化算法:?jiǎn)渭冃畏╛第3頁(yè)
無(wú)約束優(yōu)化算法:?jiǎn)渭冃畏╛第4頁(yè)
無(wú)約束優(yōu)化算法:?jiǎn)渭冃畏╛第5頁(yè)
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

單純形法1.算法原理單純形法的基本思想是:設(shè)x(0),x(1),…,x(n)是Rn中的n+1個(gè)點(diǎn),構(gòu)成一個(gè)當(dāng)前的單純形,xmax,xmin定義如下:f(x)=max{f(x(0)),f(x(1)),...,f(x(n))}maxf(x )=min{f(x(0)),f(x⑴),...,f(x(n))}min記x為這個(gè)單純形除去x外的所有頂點(diǎn)的形心,max1(1(-JIi=0x(i)—xmax/x(n+1)=x+(x—x(n+1)=x+(x—xmax)構(gòu)成新的單純形,反復(fù)上述過(guò)程,直2.函數(shù)fminsearch函數(shù)語(yǔ)法x=fminsearch(fun,x0)x=fminsearch(fun,x0,options)[x,fval]=fminsearch(...)[x,fval,exitflag]=fminsearch(..)[x,fval,exitflag,output]=fminsearch(..J函數(shù)輸入:fun:目標(biāo)函數(shù)x0:迭代初始點(diǎn)options:函數(shù)參數(shù)設(shè)置函數(shù)輸出:x:最優(yōu)點(diǎn)fval:最優(yōu)點(diǎn)對(duì)應(yīng)的函數(shù)值exitflag:函數(shù)停止信息1:函數(shù)收斂正常停止0:迭代次數(shù),目標(biāo)函數(shù)計(jì)算次數(shù)達(dá)到最大數(shù)-1:算法被輸出函數(shù)停止output:函數(shù)運(yùn)算信息函數(shù)使用目標(biāo)函數(shù)程序BanaFun.mfunctionf=BanaFun(x)(不含導(dǎo)數(shù)解析式)f=100*(x(2)-x(1)人2)人2+(1-x(1))A2Nelder-Mead Simplex函數(shù)不需要導(dǎo)數(shù)信息。算法參數(shù)設(shè)置:SimplexUnc.moptions=optimset('LargeScale','off','gradobj','off','MaxFunEvals',250,'display','iter')函數(shù)調(diào)用運(yùn)算:SimplexUnc.moptions=optimset('LargeScale','off','gradobj','on','MaxFunEvals',250,'display','iter')x=[-1.9,2][x,fval,exitflag,output]=fminsearch(@BanaFun,x,options)計(jì)算結(jié)果IterationFunc-countminf(x)Procedure01267.6213236.42initialsimplex2567.2672expand3712.2776expand4812.2776reflect51012.2776contractinside6126.76772contractinside7136.76772reflect8156.76772contractinside9176.76772contractoutside10196.62983contractinside11216.55249contractinside12236.46084contractinside13246.46084reflect14266.46084contractinside15286.45544contractoutside16306.42801expand17326.40994expand18346.32449expand19366.28548expand20386.00458expand21396.00458reflect22415.43287expand

23425.43287reflect24444.63434expand25454.63434reflect26474.63434contractinside27494.63434contractoutside28514.31027expand29534.31027contractinside30554.00991expand31564.00991reflect32583.55664expand33593.55664reflect34613.23438reflect35633.23438contractinside36652.9515expand37672.82878reflect38692.56426reflect39712.54453contractoutside40732.43615reflect41752.34358reflect42772.28129reflect43792.21473reflect44812.08627reflect45822.08627reflect46841.86677reflect47861.86677contractinside48881.80424reflect49901.58432expand50911.58432reflect51931.27128expand52941.27128reflect53961.05673reflect54981.05673contractinside551000.816708expand561020.816708contractinside571040.816708contractinside581060.760575reflect591080.601009expand601100.601009contractinside611120.516477reflect621140.516477contractinside631150.516477reflect641170.416316expand651190.416316contractinside661200.416316reflect671220.345716reflect681240.345716contractinside691260.285909expand701280.281068reflect711300.22878reflect721320.22878contractinside731340.203104expand741360.148expand751380.0999997expand761400.0999997contractinside771410.0999997reflect781430.0217142expand791450.0217142contractinside801470.0217142contractinside811480.0217142reflect821500.0217142contractinside831520.0217142contractinside841540.0191193reflect851560.00610404expand861580.00610404contractoutside871600.00261955reflect881610.00261955reflect891630.000256151reflect901650.000256151contractinside911660.000256151reflect921680.000256151contractinside931700.00020711contractinside941720.00010357contractinside951742.09236e-005contractinside961762.09236e-005contractinside971781.80497e-006reflect981801.80497e-006contractinside991821.80497e-006contractinside1001841.80497e-006contractinside1011851.80497e-006reflect1021873.74217e-007contractinside1031893.74217e-007contractinside1041913.26526e-007contractinside1051938.07652e-008contractinside1061951.66554e-008contractinside1071971.66554e-008contractinside1081991.66554e-008contractinside1092015.57089e-009contractoutside1102031.86825e-009contractinside1112051.86825e-009contractoutside1122075.53435e-010contractinside1132085.53435e-010reflect1142104.06855e-010contractinsideOptimizationterminated:thecurrentxsatisfiestheterminationcriteriausingOPTIONS.TolXof1.000000e-004andF(X)satisfiestheco

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論