필터 지우기
필터 지우기

sbiosimulate with events

조회 수: 2 (최근 30일)
Omar
Omar 2011년 9월 12일
Hi there,
I'm simulating a model with 2 events from the Simbiology desktop and it runs smoothly. However, when trying to do so from the MatLab desktop with sbiosimulate(obj) the simulation runs OK but the events never take place. Both events are active:
>> obj.Events(1).Active
ans = 1
>> obj.Events(2).Active
ans = 1
The solver used is 'sundials'.
What am I missing here?
Thanks in advance,
Omar

채택된 답변

Arthur Goldsipe
Arthur Goldsipe 2011년 9월 13일
Hi Omar,
Are there any other obvious difference in the simulations? If the model appears to be the same in both cases, then possible differences could be due to simulating with a different configuration set or a different set of variants or dose objects.
Here are some ideas for tracking down the problem: Are both simulations starting at the same initial condition? Are they both running until the same simulation stop time? Are the simulation results identical at simulation times that precede the events?
If your investigation doesn't indicate any obvious differences, then I recommend contacting MathWorks for additional help investigating the problem.
-Arthur
  댓글 수: 1
Omar
Omar 2011년 9월 13일
Thanks Arthur.
I need to be more careful. The configuration set weren't the same.
Sorry.
Omar

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

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

제품

Community Treasure Hunt

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

Start Hunting!

Translated by