sundials中的ATOL,RTOL

这篇内容提供了关于选择相对误差容忍度(reltol)和绝对误差容忍度(abstol)的一般建议。建议reltol设置为10^-4以控制相对误差,不推荐超过10^-3。对于可能接近零的解组件,需要设置适当的abstol以控制绝对误差,因为纯相对误差控制可能失去意义。abstol的值应根据具体问题中的噪声水平来设定,无法给出一般性的建议,用户或建模者应根据问题特性确定。最后,建议保守地设定这些容忍度值,以防止累积的步进误差过大。

General advice on choice of tolerances. For many users, the appropriate choices for tolerance
values in reltol and abstol are a concern. The following pieces of advice are relevant.

  1. The scalar relative tolerance reltol is to be set to control relative errors. So reltol = 10−4
    means that errors are controlled to .01%. We do not recommend using reltol larger than 10−3
    On the other hand, reltol should not be so small that it is comparable to the unit roundoff of the
    machine arithmetic (generally around 1.0E-15)

  2. The absolute tolerances abstol (whether scalar or vector) need to be set to control absolute errors when any components of the solution vector y may be so small that pure relative error control is meaningless. For example, if y[i] starts at some nonzero value, but in time decays to zero, then pure relative error control on y[i] makes no sense (and is overly costly) after y[i] is below some noise level. Then abstol (if scalar)

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值