I am trying to solve a DAE system with 7 ODEs and 1 algebraic constraint equation, so a total of 8 variables.

I specify my initial conditions then ode15s calls daeic12 to find a better set of initial conditions consistent with the constraint equation. In doing so matlab changes 1 initial condition for a particular variable $V$ (in this model the voltage), however this messes up my results as it gives me $V = 60,000$ mV which is not correct. Ideally I would like to specify that ode15s changes the initial condition for a different variable that is more flexible but I'm having trouble figuring out how to do so. Does anyone know?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.