SUNDIALS installation in MATLAB

43 vues (au cours des 30 derniers jours)
Gabriele Galli
Gabriele Galli le 4 Fév 2020
Réponse apportée : Mike Croucher le 17 Avr 2024 à 16:30
Hi All,
I need to use IDA solver in MATLAB but I am not able to use it.
I have downloaded the installation folder which contains the SUNDIALS package but I do not know the further steps in order to be able to use IDA on MATLAB. Do you know how can I do?
PS: I need to run it on my Mac, are there any problems of compatibility?
Thank you so much in advance!
Gabri

Réponses (3)

Arthur Goldsipe
Arthur Goldsipe le 4 Fév 2020
What exactly did you download? Can you provide the website or download link? I'm not sure how we can help you without knowing more information.
I see that someone (you?) tagged the question with "SimBiology." Is it an option for you to solve your problem with SimBiology? If you simulate a SimBiology model that contains algebraic rules, then SimBiology automatically uses the IDA solver.

Gabriele Galli
Gabriele Galli le 4 Fév 2020
Dear Arthur,
Thank you so much for the quick reply!
Sure, the download link is the following one:
and I downloaded the last vesion (5.1.0).
Yes, I tagged also SimBiology but the best option for me is to use IDA solver on MATLAB because I do not have access to simbiology.
Thanks again!
Gabriele
  1 commentaire
Arthur Goldsipe
Arthur Goldsipe le 4 Fév 2020
I believe SUNDIALS (and IDA) 5.1.0 only ship with interfaces to C and Fortran languages. The page you link to mentions that it used to ship with a MATLAB interface, but that was dropped a long time ago. To use it with MATLAB, someone would need to build an interface to MATLAB. MathWorks has such an interface through SimBiology. But if that doesn't meet your needs, you would need to build your own interface (but that's probably more work than you want to do). MATLAB does provide ways to interface with external languages. You can find more information on that here.
Because of these complications, it might be helpful to understand more details about why you need to use the IDA solver in MATLAB. Do you really need to use IDA? Can you use one of the other solvers provided in MATLAB?

Connectez-vous pour commenter.


Mike Croucher
Mike Croucher le 17 Avr 2024 à 16:30
As of R2024a, There is now SUNDIALS support in MATLAB via the ode interface. This incluldes "idas"

Communautés

Plus de réponses dans  SimBiology Community

Catégories

En savoir plus sur Scan Parameter Ranges dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by