Simbiology initial condition failed

조회 수: 1 (최근 30일)
P Nordell
P Nordell 2016년 10월 6일
댓글: P Nordell 2016년 10월 7일
In fit data mode I get the Simbiology error message "Simulating a group with an initial condition failed". Any idea what´s typically causing this? Runs fine in Simulation mode.

답변 (1개)

Arthur Goldsipe
Arthur Goldsipe 2016년 10월 7일
I think this is likely an overly aggressive error check, and I removed it from SimBiology in R2016b. So one fix would be to upgrade to R2016b.
If you can't upgrade, let's see if there's another way to work around the problem... The error message occurs because the simulation results include NaN values. NaN stands for "not a number", and it represents "poorly defined" mathematical results like 0/0. I originally expected these NaN values to indicate a problem with the model, but that's not always the case. However, maybe you can figure out where the NaN values are coming from and find a way to change the model to eliminate them.
If you're still stuck and can share the project, please post another MATLAB Answers question or even contact me directly.
Good luck!
-Arthur
  댓글 수: 1
P Nordell
P Nordell 2016년 10월 7일
Thanks Arthur! After having scratched my head the last few days I actually spotted the mistake this afternoon. A poorly chosen initial value that gave NaN for one of my species. As the simulations worked fine I kind of had the feeling the problem lay in my data set, but it didn't. So at least in this case a message on failing initial conditions was appropriate.
Stuck with 2014b for some time ahead...
Cheers,
Pär

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

카테고리

Help CenterFile Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by