With the new ODE command (matlab 2024a), I'd like to parametrize the ICs and make, for example, x0=[p(1); p(5)] and then compute SENSITIVITIES!
Mostra commenti meno recenti
Hi, I was pleased to see that the SUNDIAL routines now become available on a lower level with the new ODE command. I'd like to use CVODES for computation of a solution + parametric sensitivities. However, I need to make one (or more) of the ICs for x (say, x0) to be parameters instead of numerical values. Right now this is not possible.
Are you intending to make the IC a function handle, so that I can say
x0 = @(p) [p(1); p(5)]
where the dynamics are given by a non-linear state space model xdot = f(x,u,p) and x is the vector with state variables x_i, for example? Would be really nice to have this, since then I can perform my analysis. I have a work around now, but do not like this solution. My ultimate goal is to include automatic differentation for all Jacobi matrices, including the IC (!), and get a very accurate solution for the sensitivities in this way.
Thanks in advance for your help.
2 Commenti
John D'Errico
il 3 Giu 2024
I think you misunerstand what Answers is. You seem to be talking to "us" as if we have some control over the behavior of MathWorks supplied code. (That is, you use the words "are you intending" in your question.) We don't write the code. In general, we are not even employees at TMW. Answers is not technical support. It is not a direct line to the people who have written the code you use.
Hans
il 3 Giu 2024
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Perform Sensitivity Analysis in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!