필터 지우기
필터 지우기

How to deal with very small and very large parameter values while solving DAE?

조회 수: 1 (최근 30일)
Monisha S R
Monisha S R 2018년 10월 23일
편집: Monisha S R 2018년 10월 26일
I have to solve a system of differential algebraic equations wherein some of the parameter values are very large (e.g. of the order of 10^5 to 10^10) and some other parameter values are very small (e.g. order of 10^-4 to 10^-6). I use ode15s, but the code breaks saying:
Warning: Failure at t=1.000000e-03. Unable to meet integration tolerances without reducing the step size below the smallest value allowed
(3.552714e-18) at time t.
How do I resolve this?
  댓글 수: 9
Torsten
Torsten 2018년 10월 26일
When you generate the vector of time derivatives, just omit the semicolon at the end of the line.
Monisha S R
Monisha S R 2018년 10월 26일
편집: Monisha S R 2018년 10월 26일
Hi Torsten, My vector is very long (like 4000 elements), so outputting to the command window and checking the values is a tedious process. But nevertheless I can try with a smaller number of nodes. Thanks.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by