| 查看: 3826 | 回复: 5 | ||
[求助]
求大神帮忙解决一下,用MATLAB求解动力学数据总是出错~ 已有1人参与
|
|
如题,本人是个Matlab方面的小白,临时要用到,但自己纠结了好久还是没弄会,只好来向诸位大师求助了,代码及问题如下,多谢了 错误使用 odearguments (line 92) KINETICEQS 返回的矢量的长度为 5,但初始条件矢量的长度为 6。KINETICEQS 返回的矢量和初始条件矢量的元素数目必须相同。 出错 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. |
» 本帖附件资源列表
-
欢迎监督和反馈:小木虫仅提供交流平台,不对该内容负责。
本内容由用户自主发布,如果其内容涉及到知识产权问题,其责任在于用户本人,如对版权有异议,请联系邮箱:xiaomuchong@tal.com - 附件 1 : KineticsData.m
2017-02-18 14:07:42, 498 bytes
» 猜你喜欢
华南师范大学+双一流学科物理学+广东省杰青团队2027年博士招生+机器学习驱动材料设计
已经有1人回复
日内瓦国际发明展申报完整流程(科研人员通用指南)
已经有11人回复
物理学I论文润色/翻译怎么收费?
已经有90人回复
3月 中国石油和化学工业联合会科学技术奖 马上开始,申获奖要点
已经有16人回复
中国石油和化学工业联合会科学技术奖的评审标准是什么?
已经有5人回复
经费如何使用,花不完怎么办?
已经有5人回复
兼职
已经有12人回复
海外Gustau Catalan课题组情况了解
已经有1人回复
中国机械工业科学技术奖含金量,好获奖吗?
已经有1人回复
日内瓦国际发明展没有转化,只有论文能报吗?必须线下参加吗?
已经有0人回复
想投稿的来!
已经有0人回复
» 本主题相关价值贴推荐,对您同样有帮助:
急!!!求大神帮忙解决一下泛函方程的建立和压力函数的求解
已经有0人回复
matlab----解微分方程组,求大神帮忙!!
已经有6人回复
求帮忙解一下,万分感谢!!!
已经有6人回复
求大神帮忙解下结构,万分感谢!!!!
已经有4人回复
跪求大神抽空帮忙解一下结构,急急急!
已经有11人回复
matlab 中trim函数总出现Index exceeds matrix dimensions,求大神帮忙解决
已经有0人回复
VASP运行出现很多行不该有的文字,求大神帮忙解决!
已经有1人回复
模拟扣式电池的问题,求大神帮忙解决!
已经有6人回复
eps图片插入word中遇到了一个很神奇的现象,求大神帮忙解决!
已经有2人回复
晶体解析有A类错误 跪求大神帮忙修一下吧
已经有4人回复
求大神帮忙解决几个A类错误
已经有1人回复
小弟不才,求大神们解决以下CIF问题
已经有2人回复
chendequan
铁虫 (小有名气)
- 应助: 152 (高中生)
- 金币: 918.6
- 红花: 17
- 帖子: 262
- 在线: 209.3小时
- 虫号: 994474
- 注册: 2010-04-11
- 专业: 结构工程
【答案】应助回帖
感谢参与,应助指数 +1
|
>> 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> 使用函数fmincon()估计得到的参数值为: 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> 使用函数lsqnonlin()估计得到的参数值为: 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()的结果为初值,使用函数lsqnonlin()估计得到的参数值为: k1 = 0.0358 k2 = 0.0021 k3 = 5.6484 k4 = 22.7533 k5 = 14.7665 |

2楼2017-02-19 10:02:37
3楼2017-02-19 15:44:27
4楼2017-02-19 15:45:13
5楼2017-02-19 15:45:40
chendequan
铁虫 (小有名气)
- 应助: 152 (高中生)
- 金币: 918.6
- 红花: 17
- 帖子: 262
- 在线: 209.3小时
- 虫号: 994474
- 注册: 2010-04-11
- 专业: 结构工程

6楼2017-02-19 19:55:58










回复此楼