sundials solvers
sundials (suite of nonlinear and differential/algebraic equation solvers) are part of
a freely available third-party package developed at .
all other ode solvers used for simulation of simbiology® models, such as ode45
and ode15s
,
are part of the matlab® ode suite. simbiology currently (r2022a or later) uses sundials
5.7.0.
simbiology always uses the sundials solver to perform sensitivity analysis on a model, regardless of what you have selected as the in the configuration set.
in addition, if you are estimating model parameters using
or the fit data program with one of these gradient-based estimation
functions: fmincon
, fminunc
,
lsqnonlin
, or lsqcurvefit
, simbiology uses the
sundials solver by default to calculate sensitivities and use them to improve fitting. if you
are using , you can turn off this sensitivity
calculation feature by setting the name-value pair argument to
false
. however, if you are using the fit data program, you cannot turn
off this feature. it is recommended that you keep the sensitivity analysis feature on whenever
possible for more accurate gradient approximations and better parameter fits.
when you specify sundials
for the solver, the software chooses one
of two sundials solvers, cvode or ida, as appropriate for your model:
cvode is a solver for systems of odes, both nonstiff and stiff. this is used when a model has no algebraic rules.
ida is a differential-algebraic equation (dae) solver, used when one or more algebraic rules are present.
for more information on the sundials solvers, see .