| 6 | 1/1 | 返回列表 |
| 查看: 3559 | 回復(fù): 5 | |||
[求助]
求大神幫忙解決一下,用MATLAB求解動力學(xué)數(shù)據(jù)總是出錯(cuò)~ 已有1人參與
|
|
如題,本人是個(gè)Matlab方面的小白,臨時(shí)要用到,但自己糾結(jié)了好久還是沒弄會,只好來向諸位大師求助了,代碼及問題如下,多謝了 錯(cuò)誤使用 odearguments (line 92) KINETICEQS 返回的矢量的長度為 5,但初始條件矢量的長度為 6。KINETICEQS 返回的矢量和初始條件矢量的元素?cái)?shù)目必須相同。 出錯(cuò) ode45 (line 113) [neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ... 出錯(cuò) KineticsEst>ObjFunc4Fmincon (line 48) [t x] = ode45(@KineticEqs,tspan,x0,[],k); 出錯(cuò) fmincon (line 564) initVals.f = feval(funfcn{3},X,varargin{:}); 出錯(cuò) KineticsEst (line 19) [k,fval,flag] = fmincon(@ObjFunc4Fmincon,k0,[],[],[],[],lb,ub,[],[],x0,yexp); 原因: Failure in initial user-supplied objective function evaluation. FMINCON cannot continue. |
鐵蟲 (小有名氣)
|
>> KineticsEst5 Local minimum possible. Constraints satisfied. fmincon stopped because the size of the current step is less than the default value of the step size tolerance and constraints are satisfied to within the default value of the constraint tolerance. <stopping criteria details> 使用函數(shù)fmincon()估計(jì)得到的參數(shù)值為: k1 = 0.0358 k2 = 0.0021 k3 = 5.6484 k4 = 22.7533 k5 = 14.7665 The sum of the squares is: 1.5e+00 Local minimum possible. lsqnonlin stopped because the final change in the sum of squares relative to its initial value is less than the default value of the function tolerance. <stopping criteria details> 使用函數(shù)lsqnonlin()估計(jì)得到的參數(shù)值為: k1 = 0.8360 k2 = 0.0128 k3 = 3.0166 k4 = 38.9765 k5 = 7.6220 Local minimum possible. lsqnonlin stopped because the size of the current step is less than the default value of the step size tolerance. <stopping criteria details> 以fmincon()的結(jié)果為初值,使用函數(shù)lsqnonlin()估計(jì)得到的參數(shù)值為: k1 = 0.0358 k2 = 0.0021 k3 = 5.6484 k4 = 22.7533 k5 = 14.7665 |

鐵蟲 (小有名氣)

| 6 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 08工學(xué)調(diào)劑 +5 | 用戶573181 2026-03-20 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 296求調(diào)劑 +4 | www_q 2026-03-18 | 8/400 |
|
|
[考研] 085700資源與環(huán)境308求調(diào)劑 +10 | 墨墨漠 2026-03-18 | 11/550 |
|
|
[考研] 求調(diào)劑 +3 | 暗涌afhb 2026-03-16 | 3/150 |
|
|
[考研] 081700化工學(xué)碩調(diào)劑 +3 | 【1】 2026-03-16 | 3/150 |
|
|
[考研] 288求調(diào)劑 +15 | 于海海海海 2026-03-19 | 15/750 |
|
|
[考研] 生物學(xué)調(diào)劑招人。! +3 | 山海天嵐 2026-03-17 | 4/200 |
|
|
[考研] 288求調(diào)劑,一志愿華南理工大學(xué)071005 +5 | ioodiiij 2026-03-17 | 5/250 |
|
|
[考研] 321求調(diào)劑 +8 | 何潤采123 2026-03-18 | 10/500 |
|
|
[考博] 東華理工大學(xué)化材專業(yè)26屆碩士博士申請 +8 | zlingli 2026-03-13 | 8/400 |
|
|
[考研] 一志愿西安交通大學(xué)材料工程專業(yè) 282分求調(diào)劑 +5 | 楓橋ZL 2026-03-18 | 7/350 |
|
|
[考研] 0817調(diào)劑 +3 | 沒有答案_ 2026-03-14 | 3/150 |
|
|
[考研] 311求調(diào)劑 +4 | 冬十三 2026-03-18 | 4/200 |
|
|
[考研] 材料專碩306英一數(shù)二 +10 | z1z2z3879 2026-03-16 | 13/650 |
|
|
[考研] 301求調(diào)劑 +9 | yy要上岸呀 2026-03-17 | 9/450 |
|
|
[考研] 268求調(diào)劑 +8 | 一定有學(xué)上- 2026-03-14 | 9/450 |
|
|
[碩博家園] 湖北工業(yè)大學(xué) 生命科學(xué)與健康學(xué)院-課題組招收2026級食品/生物方向碩士 +3 | 1喜春8 2026-03-17 | 5/250 |
|
|
[考研] 材料工程專碩274一志愿211求調(diào)劑 +6 | 薛云鵬 2026-03-15 | 6/300 |
|
|
[考研] 26考研一志愿中國石油大學(xué)(華東)305分求調(diào)劑 +3 | 嘉年新程 2026-03-15 | 3/150 |
|
|
[考研] 085601材料工程315分求調(diào)劑 +3 | yang_0104 2026-03-15 | 3/150 |
|