24小时热门版块排行榜    

查看: 1162  |  回复: 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的回帖

jibing_alex

铜虫 (小有名气)

在程序中,我运用的ode23解得微分方程。
我现在改为ode45后,问题好像解决了。由于是好多的循环,截止目前还没有出现告警。
哈哈
5楼2010-05-05 22:35:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 5 个回答

robert2020

银虫 (著名写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
麻烦楼主贴出源程序
Truthfulness,Compassion,Tolerance,Beauty
2楼2010-05-05 21:41:35
已阅   回复此楼   关注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的回帖
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 读博的好处 +5 lnee 2026-08-11 5/250 2026-08-18 12:32 by 学员tGYWa5
[基金申请] 哪位老哥知道今年的国自然具体哪一天放榜? +13 Ldrop2023 2026-08-13 16/800 2026-08-18 12:25 by 淀粉搬运工
[基金申请] 欢迎发来filecode的Mz6后的代码验证其规律 +44 医学老男孩 2026-08-13 98/4900 2026-08-18 12:14 by wenky
[基金申请] 2027广东省杰青 +3 奶牛小黑 2026-08-15 8/400 2026-08-18 11:47 by gltch
[基金申请] 快农历七夕节了,轻松一下,男人悄悄话,女施主请不要进来。 +4 Tide man 2026-08-14 5/250 2026-08-18 11:35 by Tide man
[论文投稿] 投稿咨询 +4 wwm09 2026-08-17 5/250 2026-08-18 11:25 by 無關想念
[基金申请] 时间戳变了,能看出什么问题? +5 基诺咪客 2026-08-17 6/300 2026-08-18 11:06 by hunter无悔
[基金申请] 93BebMhtakh前后11位开头都是大写 +4 且听虎啸 2026-08-17 5/250 2026-08-18 00:49 by 蔡棒棒菂
[基金申请] 感觉是下周放榜了 +6 angus9576 2026-08-17 11/550 2026-08-17 23:57 by angus9576
[基金申请] filecode=后面第一个是大写字母 +8 wangze12014 2026-08-14 10/500 2026-08-17 17:05 by xter9665
[基金申请] 今天系统多次维护,明天很可能放榜! +8 zju2000 2026-08-16 9/450 2026-08-17 12:20 by lmz0216
[基金申请] 时间戳又变了8-15 +13 archvillain 2026-08-15 25/1250 2026-08-16 20:13 by zhaosm1982
[基金申请] 咱们一起用铁证分析2026国家社科基金中标与否 +7 启萌科技 2026-08-12 26/1300 2026-08-16 12:35 by 启萌科技
[精细化工] 招聘 金属平磨液,抛光液研发工程师 +3 小天0311 2026-08-14 3/150 2026-08-16 07:31 by H9PLUS
[基金申请] 各位道友,我要去昆明玩几天,回来见。 +7 Tide man 2026-08-14 8/400 2026-08-15 01:11 by arzu_hma
[基金申请] 是这周出结果还是下周出结果? +4 yuleib84 2026-08-11 4/200 2026-08-14 23:05 by lfy8008
[基金申请] 不应该看fileCode +7 且听虎啸 2026-08-12 9/450 2026-08-13 14:27 by flydreamws
[基金申请] Filecode 又变了,巨变 +3 WH3796 2026-08-12 4/200 2026-08-13 14:13 by 小木虫6752397
[基金申请] 结合人工智能,周易传统文化,filecode打分制来了,3分以上希望很大。 +3 Tide man 2026-08-12 4/200 2026-08-13 08:35 by ZJTJZ
[基金申请] 2019年青年基金涵评意见,大家看看几个A,几个B? +11 Tide man 2026-08-11 11/550 2026-08-13 07:35 by 撸猫猫
信息提示
请填处理意见