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

1 visualizzazione (ultimi 30 giorni)
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

Risposte (1)

Torsten
Torsten il 7 Giu 2017
No other way than to solve them one after the other.
Best wishes
Torsten.

Community Treasure Hunt

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

Start Hunting!

Translated by