| 5 | 1/1 | 返回列表 |
| 查看: 1690 | 回復: 6 | |||
| 當前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | |||
monixia木蟲 (小有名氣)
|
[求助]
求解決matlab解非線性方程組出現(xiàn)的問題 已有1人參與
|
||
|
各位matlab大神,我計算的方程組如下, >> m=0.00040; f=@(x)([3.14159*m^3+1.9635e-7*x(1)-0.002*3.14159*0.0005^2; 6*(m+x(2))*1.9635e-7-3.14159*m^3+1.9635e-7*x(3)+1.9635e-7*x(6)*(m+x(2))/x(4)-0.002*3.14159*0.0005^2; 3.14159*m^3*x(4)/(m+x(2))+1.9635e-7*x(1)*x(5)/(x(1)+x(3))-1/6*1e-6; (6*1.9635e-7*(m+x(2))-3.14159*m^3)*x(4)/(m+x(2))+1.9635e-7*x(3)*x(5)/(x(1)+x(3))+1.9635e-7*x(6)-1/6*1e-6; fix(0.05/(x(1)+x(3)))*(32*0.0010087*x(5)/0.0005^2*x(3)+7.16*0.07275*(3*(1.0087*x(5)/72.75)^(2/3)/0.0005/(1+3.34*(1.0087*x(5)/72.75)^(2/3))))-6455.68*x(6) 0.05/(m+x(2))*(32*0.0010087*x(4)/0.0005^2*x(2)+7.16*0.07275*(3*(1.0087*x(4)/72.75)^(2/3)/0.0005/(1+3.34*(1.0087*x(4)/72.75)^(2/3))))-6455.68*x(6)]); options = optimset('MaxIter',1e30,'MaxFunEvals',1e50,'TolFun',1e-50); x=fsolve(f,[0.005 0.0005 0.001 0.15 0.9 0.3],options) No solution found. fsolve stopped because the relative size of the current step is less than the default value of the step size tolerance squared, but the vector of function values is not near zero as measured by the selected value of the function tolerance. <stopping criteria details> x = 0.0070 -0.0001 0.0030 0.0344 1.0563 0.4352 fsolve stopped because the relative norm of the current step, 2.848645e-15, is less than max(options.TolX^2,eps) = 1.000000e-12. However, the sum of squared function values, r = 3.833839e-15, exceeds sqrt(options.TolFun) = 1.000000e-25. Optimization Metric Options relative norm(step) = 2.85e-15 max(TolX^2,eps) = 1e-12 (default) r = 3.83e-15 sqrt(TolFun) = 1.0e-25 (selected) 如上,初值已經取的很接近實驗值了,還是沒有滿意的結果。將matlab算的帶入六個方程, ans = 4.7168e-12 ans = -8.4160e-11 ans = 1.5716e-09 ans = -1.5222e-09 ans = 15.7955 ans = 232.7567 后兩項收斂不是很好。我已經嘗試把optimset調到很小了,可是還是沒有滿意的結果。 求助各位大牛,這個該怎么解?還是方程需要修改? 如果圓滿解決,可以加金幣~ |
木蟲 (小有名氣)
主管區(qū)長 (職業(yè)作家)
![]() |
專家經驗: +1059 |

主管區(qū)長 (職業(yè)作家)
![]() |
專家經驗: +1059 |

主管區(qū)長 (職業(yè)作家)
![]() |
專家經驗: +1059 |

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 求收留 +4 | 1943443204 2026-03-28 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 348求調劑 +5 | 小懶蟲不懶了 2026-03-28 | 5/250 |
|
|
[考研] 279求調劑 +4 | 蝶舞輕繞 2026-03-29 | 4/200 |
|
|
[考研] 一志愿北京化工大學材料與化工(085600)296求調劑 +13 | 稻妻小編 2026-03-26 | 13/650 |
|
|
[考研] 291求調劑 +4 | Y-cap 2026-03-29 | 5/250 |
|
|
[考研] 求調劑 +7 | 爭取九點睡 2026-03-28 | 8/400 |
|
|
[考研] 394求調劑 +3 | 好事多磨靜候佳?/a> 2026-03-26 | 5/250 |
|
|
[考研]
|
y7czhao 2026-03-26 | 10/500 |
|
|
[考研] 【求調劑】085601材料工程專碩 | 總分272 | +6 | 腳滑的守法公民 2026-03-27 | 6/300 |
|
|
[考研] 085404求調劑,總分309,本科經歷較為豐富 +4 | 來財aa 2026-03-25 | 4/200 |
|
|
[考研] 274求調劑 +17 | 顧九笙要謙虛 2026-03-24 | 23/1150 |
|
|
[考研] 322求調劑 +4 | 我真的很想學習 2026-03-23 | 4/200 |
|
|
[考研] 333求調劑 +3 | question挽風 2026-03-23 | 3/150 |
|
|
[考研] 【雙一流院校新能源、環(huán)境材料,材料加工與模擬招收大量調劑】 +4 | Higraduate 2026-03-22 | 8/400 |
|
|
[考研] 材料與化工304求B區(qū)調劑 +3 | 邱gl 2026-03-25 | 3/150 |
|
|
[考研] 生物技術與工程 +3 | 1294608413 2026-03-25 | 4/200 |
|
|
[考研] 【2026考研調劑】制藥工程 284分 求相關專業(yè)調劑名額 +4 | 袁奐奐 2026-03-25 | 8/400 |
|
|
[考研] 0854電子信息求調劑 +7 | α____ 2026-03-22 | 9/450 |
|
|
[考研] 一志愿河北工業(yè)大學0817化工278分求調劑 +7 | jhybd 2026-03-23 | 12/600 |
|
|
[考研] 一志愿國科過程所081700,274求調劑 +3 | 三水研0水立方 2026-03-23 | 3/150 |
|