| 5 | 1/1 | 返回列表 |
| 查看: 2975 | 回復(fù): 4 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
[求助]
fsolve解方程組有問題 已有2人參與
|
||
|
function ChemEqui x0=[1,1,1,1,1,1,1,1,1,1]; x=fsolve(@equi,x0); function f=equi(x) f1=(x(1)-x(2))*(1-x(1)-x(3)+x(2)+x(4)+x(6)+x(7))-0.959313*(1-2*x(1)-x(3))^2; f2=(x(2)-x(3))*(x(2)+x(4)+x(7))-1.003773*(x(1)-x(2))*(1-x(1)-x(3)+x(2)+x(4)+x(6)+x(7)); f3=(x(3)-x(4))*(1-x(1)-x(3)+x(2)+x(4)+x(6)+x(7))-0.964235*(x(2)-x(3))*(1-2*x(1)-x(3)); f4=(x(2)+x(4)+x(7))*(x(4)-x(5))-0.994909*(x(3)-x(4))*(1-x(1)-x(3)+x(2)+x(4)+x(6)+x(7)); f5=x(5)-x(6)-x(7)-1.002046*(x(4)-x(5)); f6=(x(6)-2*x(8))*x(6)-1.052621*(x(5)-x(6)-x(7))*(1-x(1)-x(3)+x(2)+x(4)+x(6)+x(7)); f7=x(7)*(x(2)+x(4)+x(7))-1.043431*(x(5)-x(6)-x(7))*(1-x(1)-x(3)+x(2)+x(4)+x(6)+x(7)); f8=x(8)^2-0.988734*(x(6)-2*x(8))^2; f=[f1 f2 f3 f4 f5 f6 f7 f8]; 上面的寫的,計(jì)算出來后有警告Trust-region-dogleg algorithm of FSOLVE cannot handle non-square systems; using Levenberg-Marquardt algorithm instead. 請問一下什么情況 |
用戶注銷 (職業(yè)作家)
Matlab專家
鐵桿木蟲 (著名寫手)
ส็็็
|
沒有使用默認(rèn)的算法 使用了LM算法 參考 https://cn.mathworks.com/help/optim/ug/fsolve.html |

鐵桿木蟲 (職業(yè)作家)
|
1stOpt求解: x1: -5.49608040273917E-17 x2: 1.80094386556405E-22 x3: 1 x4: -5.06683228281383E-22 x5: 7.04504319547718E-23 x6: 2.921739051712E-22 x7: 1.98623664044073E-22 x8: 1.53554561331567E-13 x3=1,其它均為0即為最好解。 |
用戶注銷 (初入文壇)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[碩博家園] 求調(diào)劑 有機(jī)化學(xué)考研356分 +11 | Nadiums 2026-03-25 | 12/600 |
|
|---|---|---|---|---|
|
[考研] 294分080500材料科學(xué)與工程求調(diào)劑 +10 | 柳溪邊 2026-03-26 | 11/550 |
|
|
[電化學(xué)] 070300化學(xué)調(diào)劑 +5 | 山頂見α 2026-03-25 | 5/250 |
|
|
[考研]
|
小羊36 2026-03-30 | 4/200 |
|
|
[考研] 求收留 +8 | 1943443204 2026-03-28 | 8/400 |
|
|
[考研] 367求調(diào)劑 +7 | 芋泥啵! 2026-03-28 | 7/350 |
|
|
[考研] 一志愿211,335分,0856,求調(diào)劑院校和導(dǎo)師 +10 | 傾____蕭 2026-03-27 | 11/550 |
|
|
[論文投稿]
chinese chemical letters英文版投稿求助
130+3
|
Yishengeryi 2026-03-30 | 3/150 |
|
|
[有機(jī)交流]
10+3
|
kaobao456 2026-03-29 | 4/200 |
|
|
[考研] 303求調(diào)劑 +7 | DLkz1314. 2026-03-30 | 7/350 |
|
|
[考研] 334分 一志愿武理 材料求調(diào)劑 +16 | 李李不服輸 2026-03-26 | 16/800 |
|
|
[考研] 327求調(diào)劑 +6 | 汲亦昊 2026-03-29 | 6/300 |
|
|
[考研] 352分-085602-一志愿985 +5 | 海納百川Ly 2026-03-29 | 5/250 |
|
|
[考研] 316求調(diào)劑 +7 | 江辭666 2026-03-26 | 7/350 |
|
|
[考研] 求調(diào)劑 +6 | 蘆lty 2026-03-25 | 7/350 |
|
|
[考研] 085701環(huán)境工程,267求調(diào)劑 +16 | minht 2026-03-26 | 16/800 |
|
|
[考研] 一志愿南京航空航天大學(xué)材料學(xué)碩求調(diào)劑 +3 | @taotao 2026-03-28 | 3/150 |
|
|
[考研] 308求調(diào)劑 +7 | 墨墨漠 2026-03-27 | 7/350 |
|
|
[考研] 266分求材料化工冶金礦業(yè)等專業(yè)的調(diào)劑 +4 | 哇呼哼呼哼 2026-03-26 | 4/200 |
|
|
[考研] 296求調(diào)劑 +4 | 汪?! 2026-03-25 | 7/350 |
|