Solving DAEs problem with different initial conditions at different times of simulation using ode15s

I have a set of DAEs that I solved it using ode15s. Now, I want to solve the same problem but the initial conditions are changed at a specific time of the simulation (let's say, at t=50% of simulation time given to the solver). In other words, I have two different ICs for two different times of simulation. I don't want to solve the problem separately for each ICs. Does anybody know how to do so? This can be done by using Simulink's clock, but I am not using Simulink for this problem. Thanks in advance

回答 (1 件)

Torsten
Torsten 2017 年 6 月 7 日
No other way than to solve them one after the other.
Best wishes
Torsten.

カテゴリ

質問済み:

2017 年 6 月 7 日

編集済み:

2017 年 6 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by