| 5 | 1/1 | 返回列表 |
| 查看: 2977 | 回復(fù): 4 | |||
[求助]
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]; 上面的寫的,計算出來后有警告Trust-region-dogleg algorithm of FSOLVE cannot handle non-square systems; using Levenberg-Marquardt algorithm instead. 請問一下什么情況 |
鐵桿木蟲 (著名寫手)
ส็็็
|
沒有使用默認(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ā)表 | |
|---|---|---|---|---|
|
[考研] 288資源與環(huán)境專碩求調(diào)劑,不限專業(yè),有學(xué)上就行 +20 | lllllos 2026-03-30 | 20/1000 |
|
|---|---|---|---|---|
|
[考研] 考研材料工程351分調(diào)劑 +4 | 整個好的 2026-03-31 | 4/200 |
|
|
[考研] 一志愿武理材料工程302調(diào)劑環(huán)化或化工 +8 | Doleres 2026-03-31 | 8/400 |
|
|
[考研] 284求調(diào)劑 +9 | 小熊~~ 2026-03-31 | 9/450 |
|
|
[考研] 336材料求調(diào)劑 +10 | 陳瀅瑩 2026-03-26 | 12/600 |
|
|
[考研] 286分調(diào)劑 +11 | Faune 2026-03-30 | 13/650 |
|
|
[考研] 生醫(yī)工0831調(diào)劑求推薦 +4 | 小熊睿睿_s 2026-03-27 | 6/300 |
|
|
[考研] 化學(xué)0703 調(diào)劑 306分 一志愿211 +10 | 26要上岸 2026-03-28 | 10/500 |
|
|
[基金申請] 面上5B能上會嗎? +8 | redcom 2026-03-29 | 8/400 |
|
|
[考研] 化學(xué)工程085602 305分求調(diào)劑 +28 | RichLi_ 2026-03-25 | 36/1800 |
|
|
[考研] 一志愿南昌大學(xué)324求調(diào)劑 +6 | hanamiko 2026-03-30 | 6/300 |
|
|
[考研] 085601一志愿西北工業(yè)大學(xué)初試346 +4 | 085601初試346 2026-03-30 | 4/200 |
|
|
[考研] 085602化工求調(diào)劑(331分) +8 | 111@127 2026-03-30 | 8/400 |
|
|
[考研] 一志愿廈門大學(xué)材料工程專碩354找調(diào)劑!。 +5 | 貝唄鋇鋇 2026-03-30 | 5/250 |
|
|
[考研] 332求調(diào)劑 +6 | @MZB382400 2026-03-28 | 6/300 |
|
|
[考研] 086000生物與醫(yī)藥調(diào)劑 +5 | Feisty。 2026-03-28 | 9/450 |
|
|
[考研] 本科新能源科學(xué)與工程,一志愿華理能動285求調(diào)劑 +3 | AZMK 2026-03-27 | 5/250 |
|
|
[考研] 305求調(diào)劑 +5 | 哇盧卡庫 2026-03-26 | 5/250 |
|
|
[考研] 0703化學(xué)338求調(diào)劑! +6 | Zuhui0306 2026-03-26 | 7/350 |
|
|
[考研] 材料專碩 335 分求調(diào)劑 +4 | 拒絕冷暴力 2026-03-25 | 4/200 |
|