| 5 | 1/1 | 返回列表 |
| 查看: 2974 | 回復(fù): 4 | ||
請(qǐng)叫我呼呼呼銅蟲 (小有名氣)
|
[求助]
fsolve解方程組有問(wèn)題 已有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ì)算出來(lái)后有警告Trust-region-dogleg algorithm of FSOLVE cannot handle non-square systems; using Levenberg-Marquardt algorithm instead. 請(qǐng)問(wèn)一下什么情況 |
鐵桿木蟲 (著名寫手)
ส็็็
|
沒(méi)有使用默認(rèn)的算法 使用了LM算法 參考 https://cn.mathworks.com/help/optim/ug/fsolve.html |

用戶注銷 (職業(yè)作家)
Matlab專家
鐵桿木蟲 (職業(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即為最好解。 |
用戶注銷 (初入文壇)
| 5 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 安徽大學(xué)專碩生物與醫(yī)藥專業(yè)(086000)324分,英語(yǔ)已過(guò)四六級(jí),六級(jí)521,求調(diào)劑 +7 | 美味可樂(lè)雞翅 2026-03-26 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 347求調(diào)劑 +11 | 山頂見(jiàn)α 2026-03-25 | 11/550 |
|
|
[考研] 286求調(diào)劑 +5 | 丟掉懶惰 2026-03-27 | 8/400 |
|
|
[考研] 南京大學(xué)化學(xué)調(diào)劑 +11 | 景隨風(fēng) 2026-03-29 | 16/800 |
|
|
[考研] 08工科,295,接受跨專業(yè)調(diào)劑 +6 | lmnlzy 2026-03-30 | 6/300 |
|
|
[考研] 材料與化工(0856)304求B區(qū)調(diào)劑 +6 | 邱gl 2026-03-30 | 10/500 |
|
|
[考研] 求調(diào)劑,一志愿 南京航空航天大學(xué) ,080500材料科學(xué)與工程學(xué)碩,總分289分 +9 | @taotao 2026-03-29 | 9/450 |
|
|
[考研] 303求調(diào)劑 +7 | DLkz1314. 2026-03-30 | 7/350 |
|
|
[考研] 一志愿中海洋材料357 +3 | 麥恩莉. 2026-03-30 | 3/150 |
|
|
[考研] 359求調(diào)劑 +5 | 王了個(gè)楠 2026-03-25 | 5/250 |
|
|
[考研] 一志愿廈門大學(xué)材料工程專碩354找調(diào)劑。! +5 | 貝唄鋇鋇 2026-03-30 | 5/250 |
|
|
[考研] 071010 323 分求調(diào)劑 +3 | Baekzhy 2026-03-27 | 3/150 |
|
|
[考研] 085404求調(diào)劑,總分309,本科經(jīng)歷較為豐富 +6 | 來(lái)財(cái)aa 2026-03-25 | 6/300 |
|
|
[考研] 一志愿211,335分,0856,求調(diào)劑院校和導(dǎo)師 +7 | 傾____蕭 2026-03-27 | 8/400 |
|
|
[考研] 求調(diào)劑 +10 | 張zz111 2026-03-27 | 11/550 |
|
|
[考研] 一志愿南師大0703化學(xué) 275求調(diào)劑 +4 | Ripcord上岸 2026-03-27 | 4/200 |
|
|
[考研] 315調(diào)劑 +4 | 0860求調(diào)劑 2026-03-26 | 5/250 |
|
|
[考研] 286求調(diào)劑 +4 | lim0922 2026-03-26 | 4/200 |
|
|
[考研] 303求調(diào)劑 +6 | 藍(lán)山月 2026-03-25 | 6/300 |
|
|
[考研] 求調(diào)劑 +3 | 李李不服輸 2026-03-25 | 3/150 |
|