


下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、優(yōu)化計(jì)算 MATLAB 程序首先,將目標(biāo)函數(shù)寫成 M 文件,其程序語(yǔ)句如下; function f = fun (x)global K L thetamax alphafor i=1:61f = 0betae = atan(tan(alpha(i)/(1-(K/L)*tan(alpha(i);A(i)=2*x(1).2*sin(x(2)+alpha(i);B(i)=2*K*x(1)-2*x(1).2*cos(x(2)+alpha(i);C(i)=2*x(1).2-4*x(1).2*(cos(x(2).2+4*K*x(1)*cos(x(2)-2*K*x(1)*cos(x(2)+alpha(i);
2、theta3(i)= 2*acot(A(i)+sqrt(A(i).2+B(i).2-C(i).2)/(B(i)+C(i);beta(i)=x(2)+theta3(i)-pi;if alpha(i)=pi/18,alpha(i)=pi/9;f(i)=abs(betaa(i)-betae3(i); elsef(i)=0.5*abs(beta(i)-betae3(i); global K L thetamax alphaK=inputL=inputthetamax=inputx0(1)=inputx0(2)=inputthetamax = thetamax*pi/180;x0(2)=x0(2)*pi
3、/180;lb(1)=0.17K; lb(2)=0.17*K; ub(1)=acot(K/(1.2*L)ub(2)=pi/2;alpha=linspace (0, theamax ,61);lb=lb(1),lb(2);ub=ub(1),ub(2);x(0)=x0(1),x0(2);options = optimset ( TolFun-10 ,TolConle-6), lex,resnorm = lsqnonlin( fun,x0,lb,ub,options)g lobal K L thetamax alphaK = inputL= inputthetamax= inputx ( 1) =
4、inputx ( 2) = inputthetamax = thetamax * pi/ 180;x ( 2) = x ( 2) * pi/ 180;alpha= linspace( 0, thetamax , 61) ;fo r i= 1 61betae= atan( tan( alpha( i) ) / ( 1- K/ L) * tan( alpha( i) ) ) ) ;A ( i) = 2* ( x ( 1) ) . 2* sin ( x ( 2) + alpha( i) ) ;B( i) = 2* K* x( 1) - 2* ( x ( 1) ) .2* cos( x( 2) + a
5、lpha( i) ) ) ;C ( i ) = 2* ( x ( 1) ) . 2- 4 * ( x ( 1) ) . 2*( cos( x( 2) ) ) . 2+ 4* K * x ( 1) * cos( x ( 2) ) - 2* K* x ( 1) * cos( x ( 2) + alpha( i) ) ;theta3(i)= 2* acot ( A( i) + sqr t ( ( ( A( i) ) . 2+( B( i) ) . 2- * ( C( i) ) .2) ) /( B( i) + C( i) ) ) ;beta( i) = x ( 2) + theta3( i) - pi;endpl
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝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ù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權(quán)】 ISO 23649:2025 EN Chemicals for the leather tanning industry - Determination of cyclosiloxanes
- 【正版授權(quán)】 ISO 3518:2025 EN Essential oil of sandalwood (Santalum album L.)
- 【正版授權(quán)】 ISO 18162:2024 EN Biotechnology - Biobanking - Requirements for human neural stem cells derived from pluripotent stem cells
- 2025年度標(biāo)準(zhǔn)托盤租賃及全程跟蹤服務(wù)協(xié)議
- 二手機(jī)械二手交易與環(huán)保處理服務(wù)合同(2025版)
- 2025年度二手房購(gòu)房貸款保險(xiǎn)合同范本
- 2025年辦公設(shè)備升級(jí)改造項(xiàng)目合作協(xié)議
- 生產(chǎn)計(jì)劃的周期性評(píng)審與調(diào)整
- 農(nóng)業(yè)生產(chǎn)的安全防護(hù)措施計(jì)劃
- 如何制定子女的教育基金計(jì)劃
- 配電箱試驗(yàn)項(xiàng)目
- 固體廢棄物檢查記錄
- 溫室大棚花卉苗圃采暖方案空氣源熱泵
- BEC商務(wù)英語(yǔ)高級(jí)考試歷年真題
- 初二地理中考復(fù)習(xí)備考策略與計(jì)劃
- GB/T 5465.1-2009電氣設(shè)備用圖形符號(hào)第1部分:概述與分類
- 2023年遼寧鐵道職業(yè)技術(shù)學(xué)院高職單招(數(shù)學(xué))試題庫(kù)含答案解析
- 黔2022-T122 磷石膏砂漿噴筑復(fù)合墻標(biāo)準(zhǔn)圖集 第1部分:輕鋼龍骨-磷石膏砂漿噴筑復(fù)合墻體
- GB 29444-2012煤炭井工開采單位產(chǎn)品能源消耗限額
- CAPP教學(xué)講解課件
- 精細(xì)化學(xué)品化學(xué)-緒論課件
評(píng)論
0/150
提交評(píng)論