24小时热门版块排行榜    

查看: 935  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 化学调剂0703 +7 啊我我的 2026-03-11 7/350 2026-03-15 23:03 by 凌千颂111
[考研] 材料工程专硕274一志愿211求调剂 +5 薛云鹏 2026-03-15 5/250 2026-03-15 20:38 by Logic2024
[考研] 0703化学调剂,求各位老师收留 +7 秋有木北 2026-03-14 7/350 2026-03-15 17:30 by 小物理化学
[考研] 材料与化工(0856)304求B区调剂 +7 邱gl 2026-03-10 11/550 2026-03-14 12:18 by 邱gl
[考研] 一志愿郑大070303,338分,求调剂 +4 dadawaf 2026-03-10 5/250 2026-03-14 01:20 by lsw010101
[考研] 一志愿安徽大学材料工程专硕313分,求调剂的学校 +8 Yu先生 2026-03-10 10/500 2026-03-14 01:04 by JourneyLucky
[考研] 304求调剂 +6 Mochaaaa 2026-03-12 7/350 2026-03-13 22:18 by 星空星月
[考研] 材料工程调剂 +9 咪咪空空 2026-03-12 9/450 2026-03-13 22:05 by 星空星月
[考研] 四川大学085601材料工程专硕 初试294求调剂 +4 祝我们好在冬天 2026-03-11 4/200 2026-03-13 21:39 by peike
[考研] 工科,求调剂 +3 我887 2026-03-11 3/150 2026-03-13 21:39 by JourneyLucky
[考研] 285化工学硕求调剂(081700) +6 柴郡猫_ 2026-03-12 6/300 2026-03-13 20:46 by hmn_wj
[考研] 材料与化工085600调剂求老师收留 +9 jiaanl 2026-03-11 9/450 2026-03-13 20:22 by JourneyLucky
[考研] 307求调剂 +5 超级伊昂大王 2026-03-12 5/250 2026-03-13 15:56 by 棒棒球手
[考研] 一志愿山大07化学 332分 四六级已过 本科山东双非 求调剂! +3 不想理你 2026-03-12 3/150 2026-03-13 14:18 by JourneyLucky
[考研] 26考研求调剂 +5 丶宏Sir 2026-03-13 5/250 2026-03-13 13:05 by JourneyLucky
[考博] 福州大学杨黄浩课题组招收2026年专业学位博士研究生,2026.03.20截止 +3 Xiangyu_ou 2026-03-12 3/150 2026-03-13 09:36 by duanwu655
[考研] 293求调剂,一志愿陕师大生物学 +3 ??????.?.??? 2026-03-09 3/150 2026-03-11 10:02 by 学员8dgXkO
[考研] 化工0817调剂 +8 灿若星晨 2026-03-10 8/400 2026-03-10 22:44 by 星空星月
[考研] 298求调剂 +3 Vv呀! 2026-03-10 3/150 2026-03-10 22:40 by 剑诗杜康
[考研] 294 英二数二物化 求调剂 +6 米饭团不好吃 2026-03-09 6/300 2026-03-09 23:55 by barlinike
信息提示
请填处理意见