24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 939  |  回复: 4

jibing_alex

铜虫 (小有名气)

[交流] 【求助】ode23求助 已有3人参与

大家好,请教大家一个问题:

我现在使用matlab中的ode23函数建一个微分方程,但是在运算的过程中,出现这样的warning:
Warning: Failure at t=3.073417e+003.  Unable to meet integration tolerances without reducing
the step size below the smallest value allowed (7.275958e-012) at time t.
> In ode23 at 362
  In fitness at 64
  In gads\private\validate>@(x)fitness(x,FitnessFcnArgs{:}) at 135
  In gads\private\fcnvectorizer at 14
  In gads\private\makeState at 48
  In gads\private\galincon at 18
  In ga at 289
  In Genetic_algoritnm at 16
  In op_mian at 14
Warning: Failure at t=2.436106e+003.  Unable to meet integration tolerances without reducing
the step size below the smallest value allowed (7.275958e-012) at time t.
> In ode23 at 362
  In fitness at 64
  In gads\private\validate>@(x)fitness(x,FitnessFcnArgs{:}) at 135
  In gads\private\fcnvectorizer at 14
  In gads\private\makeState at 48
  In gads\private\galincon at 18
  In ga at 289
  In Genetic_algoritnm at 16
  In op_mian at 14
请大家指点一下!
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

哈哈
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

robert2020

银虫 (著名写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
麻烦楼主贴出源程序
Truthfulness,Compassion,Tolerance,Beauty
2楼2010-05-05 21:41:35
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

change0618

铁杆木虫 (著名写手)

方丈大师


小木虫(金币+0.5):给个红包,谢谢回帖交流
ode23s
3楼2010-05-05 22:03:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jibing_alex

铜虫 (小有名气)

源程序如下:
这是阶微分方程的
  options = odeset('RelTol',1e-4,'AbsTol',1e-4);
  [t,x]=ode23(@Trabecular_Normal,[tstart tfinal],x0,options);
--------------函数的定义
function xdot = Trabecular_Normal(t,x);

%%----- System Variables defination
% x(1) = Osteoclast
% x(2) = Osteoblast
% x(3) = Bone thickness
global a;
global b;
global c;
global d;
global e;
global f;
global Koc;
global Kob;
Xb=0;

%three equtions for the model
xdot(1) = a*x(1)-b*sqrt(x(2))*x(1);%+Fob /2.1
xdot(2) = c*(x(1)^2)/(Koc+x(1)^2)*x(2)-d*x(2);%8
xdot(3) = (x(2)/(Kob+x(2)))*(e+Xb-x(3))-f*x(1)^2;%+ g*x(1);  %xdot(3) = e*x(1)- f*x(2)*x(3);   
xdot=xdot'; % transpose to make a column vector
哈哈
4楼2010-05-05 22:33:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jibing_alex

铜虫 (小有名气)

在程序中,我运用的ode23解得微分方程。
我现在改为ode45后,问题好像解决了。由于是好多的循环,截止目前还没有出现告警。
哈哈
5楼2010-05-05 22:35:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 jibing_alex 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料与化工371求调剂 +14 陪琳看海 2026-04-04 15/750 2026-04-06 06:59 by houyaoxu
[考研] 0703求调剂383分 +9 W55j 2026-04-03 9/450 2026-04-06 06:50 by houyaoxu
[考研] 308求调剂 +3 终不似从前 2026-04-05 3/150 2026-04-05 22:23 by hemengdong
[考研] 327求调剂 +4 拾光任染 2026-04-05 4/200 2026-04-05 20:16 by 南航~万老师
[考研] 一志愿211生物学280分 求调剂 +4 李rien 2026-04-05 4/200 2026-04-05 18:01 by kk112233
[考研] 288求调剂 +7 没有答案_ 2026-04-05 7/350 2026-04-05 17:01 by yulian1987
[考研] 328分调剂 +6 门men 2026-04-04 6/300 2026-04-05 13:40 by imissbao
[考研] 083200 333求调剂 +3 十二!! 2026-04-04 3/150 2026-04-05 08:28 by barlinike
[考研] 285求调剂 +11 哦呦呼o 2026-04-04 11/550 2026-04-05 08:15 by 544594351
[考研] 296材料专硕求调剂 +21 202451007219 2026-04-02 22/1100 2026-04-04 21:48 by hemengdong
[考研] 315求调剂 +13 小羊小羊_ 2026-04-02 14/700 2026-04-04 20:30 by 蓝云思雨
[考研] +5 雾与海 2026-04-02 6/300 2026-04-04 19:53 by 蓝云思雨
[考研] 一志愿0817化学工程与技术,求调剂 +24 我不是只因 2026-04-02 28/1400 2026-04-04 15:15 by dongzh2009
[考研] 求调剂 +8 akdhjs 2026-04-03 8/400 2026-04-03 18:17 by 戴维ING
[考研] 366求调剂 +7 sbdnd 2026-04-03 7/350 2026-04-03 12:40 by cymywx
[考研] 一志愿华南师范大学-22408计算机-292分-求华南师范大学调剂 +4 爱读书的小鳄鱼 2026-04-02 4/200 2026-04-02 18:35 by 求调剂zz
[考研] 一志愿北京科技大学材料学硕328分求调剂 +6 1段时间 2026-03-31 7/350 2026-04-02 13:57 by 3041
[考研] 314求调剂 +11 1xiaojun23 2026-03-31 12/600 2026-04-02 12:31 by 1xiaojun23
[考研] 07生物学求调剂 一志愿同济大学359分 +3 LAMC. 2026-03-30 3/150 2026-04-02 10:26 by 18828373951
[考研] 【调剂】一志愿厦大生物与医药调剂 +3 Echo虾米 2026-03-31 3/150 2026-04-01 08:40 by JourneyLucky
信息提示
请填处理意见