| 5 | 1/1 | 返回列表 |
| 查看: 3558 | 回復(fù): 5 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | ||
[求助]
求大神幫忙解決一下,用MATLAB求解動力學(xué)數(shù)據(jù)總是出錯~ 已有1人參與
|
||
|
如題,本人是個Matlab方面的小白,臨時要用到,但自己糾結(jié)了好久還是沒弄會,只好來向諸位大師求助了,代碼及問題如下,多謝了 錯誤使用 odearguments (line 92) KINETICEQS 返回的矢量的長度為 5,但初始條件矢量的長度為 6。KINETICEQS 返回的矢量和初始條件矢量的元素數(shù)目必須相同。 出錯 ode45 (line 113) [neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ... 出錯 KineticsEst>ObjFunc4Fmincon (line 48) [t x] = ode45(@KineticEqs,tspan,x0,[],k); 出錯 fmincon (line 564) initVals.f = feval(funfcn{3},X,varargin{:}); 出錯 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()估計得到的參數(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()估計得到的參數(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()估計得到的參數(shù)值為: k1 = 0.0358 k2 = 0.0021 k3 = 5.6484 k4 = 22.7533 k5 = 14.7665 |

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 材料學(xué)碩297已過四六級求調(diào)劑推薦 +5 | adaie 2026-03-19 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 085600材料與化工 求調(diào)劑 +17 | enenenhui 2026-03-13 | 18/900 |
|
|
[考研] 求調(diào)劑 +3 | 暗涌afhb 2026-03-16 | 3/150 |
|
|
[考研] 材料與化工求調(diào)劑 +7 | 為學(xué)666 2026-03-16 | 7/350 |
|
|
[考研] 求調(diào)劑 +3 | Mqqqqqq 2026-03-19 | 3/150 |
|
|
[考研] 一志愿中海洋材料工程專碩330分求調(diào)劑 +7 | 小材化本科 2026-03-18 | 7/350 |
|
|
[考研] 332求調(diào)劑 +3 | ydfyh 2026-03-17 | 3/150 |
|
|
[考研] 0703化學(xué)調(diào)劑,求各位老師收留 +10 | 秋有木北 2026-03-14 | 10/500 |
|
|
[考研] 0854可跨調(diào)劑,一作一項核心論文五項專利,省、國級證書40+數(shù)一英一287 +8 | 小李0854 2026-03-16 | 8/400 |
|
|
[考研] 一志愿西南交大,求調(diào)劑 +4 | 材化逐夢人 2026-03-18 | 4/200 |
|
|
[考研] 材料專碩306英一數(shù)二 +10 | z1z2z3879 2026-03-16 | 13/650 |
|
|
[考研] 070300化學(xué)319求調(diào)劑 +6 | 錦鯉0909 2026-03-17 | 6/300 |
|
|
[考研] 302求調(diào)劑 +10 | 呼呼呼。。。。 2026-03-17 | 10/500 |
|
|
[考研] 考研求調(diào)劑 +3 | 橘頌. 2026-03-17 | 4/200 |
|
|
[考研] 301求調(diào)劑 +4 | A_JiXing 2026-03-16 | 4/200 |
|
|
[考研] 材料專碩326求調(diào)劑 +6 | 墨煜姒莘 2026-03-15 | 7/350 |
|
|
[考研] 有沒有道鐵/土木的想調(diào)劑南林,給自己招師弟中~ +3 | TqlXswl 2026-03-16 | 7/350 |
|
|
[考研] [導(dǎo)師推薦]西南科技大學(xué)國防/材料導(dǎo)師推薦 +3 | 尖角小荷 2026-03-16 | 6/300 |
|
|
[考研] 326求調(diào)劑 +4 | 諾貝爾化學(xué)獎覬?/a> 2026-03-15 | 7/350 |
|
|
[考研] 招收0805(材料)調(diào)劑 +3 | 18595523086 2026-03-13 | 3/150 |
|