sundials icon indicating copy to clipboard operation
sundials copied to clipboard

SUNDIALS IDA Installation in Matlab

Open kimo707 opened this issue 1 year ago • 4 comments

I am currently working on a project that requires the use of the Sundials solver in MATLAB. I have tried to find information about the installation process in the user guide, but unfortunately, I couldn't locate any relevant details.

I am writing to kindly request your assistance in providing me with the necessary information on how to install the Sundials solver on MATLAB. Any guidance or step-by-step instructions you can offer would be greatly appreciated.

If there are any specific prerequisites or system requirements I need to be aware of before installation, please do let me know. Additionally, if there are any compatibility issues with certain versions of MATLAB or Sundials, I would be grateful for that information as well.

kimo707 avatar Jul 19 '23 18:07 kimo707

Hi @kimo707. SUNDIALS does not provide a MATLAB interface at this time. Is there a reason you can't use the built-in MATLAB function ode15i? I'll note that Octave, an open source MATLAB alternative, uses IDA for its implementation of ode15s and ode15i. Otherwise, you may need a third-party tool or custom mex files to call IDA from MATLAB.

Regarding installation and prerequisites, you can refer to https://sundials.readthedocs.io/en/latest/Install_link.html, but this is for use in C/C++/Fortran programs.

Steven-Roberts avatar Jul 19 '23 20:07 Steven-Roberts

Hi, mex interface was a great feature for others tools compatible (open source world). This allowed to propose sundials as it. Currently I need to use old versions or rewrite a full implementation. Thanks for your great works on Sundials

@Nelson-numerical-software I've noted that you're requesting an updated MATLAB interface to SUNDIALS. I cannot promise if or when this would be implemented.

balos1 avatar Jul 25 '23 22:07 balos1

Next version of Scilab (2024.0 in october) will give access to almost all SUNDIALS solvers (idas will be interfaced later) and preview builds are available here: https://www.utc.fr/~mottelet/scilab_for_macOS.html. I have started porting the gateways code for Nelson a few month ago but I had to focus on Scilab release this spring and summer.

mottelet avatar Jul 26 '23 10:07 mottelet

FYI, the upcoming MATLAB release, 2024a, will provide IDAS and CVODES as solver options for an ode.

I'll close this issue unless folks have additional questions or comments.

Steven-Roberts avatar Mar 18 '24 18:03 Steven-Roberts