AMICI provides a multi-language (Python, C++, Matlab) interface to the SUNDIALS solvers CVODES (for ODEs) and IDAS (for DAEs). AMICI allows the user to read differential equation models specified as SBML or PySB and automatically compiles such models into Python modules, C++ libraries or .mex simulation files (Matlab).

In contrast to the (no longer maintained) sundialsTB Matlab interface, all necessary functions are transformed into native C++ code, which allows for a significantly faster simulation.

Beyond forward integration, the compiled simulation file also allows for forward sensitivity analysis, steady state sensitivity analysis and adjoint sensitivity analysis for likelihood-based output functions.

The interface was designed to provide routines for efficient gradient computation in parameter estimation of biochemical reaction models but it is also applicable to a wider range of differential equation constrained optimization problems.

## Features

• SBML import

• PySB import

• Generation of C++ code for model simulation and sensitivity computation

• Python, C++, Matlab interface

• Sensitivity analysis

• forward

• first- and second-order (second-order Matlab-only)

• Pre-equilibration and pre-simulation conditions

• Support for discrete events and logical operations

## Interfaces & workflow

The AMICI workflow starts with importing a model from either SBML (Matlab, Python), PySB (Python), or a Matlab definition of the model (Matlab-only). From this input, all equations for model simulation are derived symbolically and C++ code is generated. This code is then compiled into a C++ library, a Python module, or a Matlab .mex file and is then used for model simulation. The functionality of the Python, Matlab and C++ interfaces slightly differ, as shown in the following table:

Feature \ Interface

Python

C++

Matlab

SBML import

yes (details)

no

yes (<=R2017b)

PySB import

yes

no

no

DAE import

no

no

yes

Forward sensitivities

yes

yes

yes

yes

yes

yes

yes

yes

yes

Second-order sensitivities

no

no

yes

Events

yes

yes

yes

preequilibration

yes

yes

yes

presimulation

yes

yes

no
{"ft_lang_label":"__label__en","ft_lang_prob":0.824384,"math_prob":0.7302056,"size":2268,"snap":"2023-14-2023-23","text_gpt3_token_len":534,"char_repetition_ratio":0.17270318,"word_repetition_ratio":0.08888889,"special_character_ratio":0.21693122,"punctuation_ratio":0.07865169,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9931393,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-01T04:39:57Z\",\"WARC-Record-ID\":\"<urn:uuid:1c5026b6-b7db-4fed-a822-be2c56907149>\",\"Content-Length\":\"21736\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8b7d2364-74a8-4fe5-9402-a737e5843144>\",\"WARC-Concurrent-To\":\"<urn:uuid:9d80c284-83d6-46c6-8080-48e8a01affa5>\",\"WARC-IP-Address\":\"104.17.33.82\",\"WARC-Target-URI\":\"https://amici.readthedocs.io/en/latest/about.html\",\"WARC-Payload-Digest\":\"sha1:UKGKFMEKC6EGPYCBT6HQYCCJUOUUS43B\",\"WARC-Block-Digest\":\"sha1:KMID2V76Q2U7X6LXIRDMT72AUAVY4HGU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224647614.56_warc_CC-MAIN-20230601042457-20230601072457-00004.warc.gz\"}"}