simbio.complexstep.min
Description
returns M
= simbio.complexstep.min(X
,Y
)X
if real(X)
is less than
real(Y)
. Otherwise, the function returns Y
.
simbio.complexstep.min
is equivalent to min
when both inputs are real.
When you have a SimBiology model with a custom function that calls
min
and you are performing local sensitivity analysis on the model, replacemin
withsimbio.complexstep.min
in your custom function.You do not need to update SimBiology expressions (such as reaction rates or rules) that directly call
min
. SimBiology automatically replacesmin
withsimbio.complexstep.min
whenever:You calculate local sensitivities using
sbiosimulate
, aSimFunctionSensitivity
object, or the Calculate Sensitivities program.sbiofit
orfitproblem
uses local sensitivity analysis to determine the gradients of the objective function during parameter estimation.
simbio.complexstep.min
is not differentiable when the real parts ofX
andY
are equal [1]. For more information, see Local Sensitivity Analysis (LSA).
Examples
Input Arguments
References
[1] Martins, Joaquim, Ilan Kroo, and Juan Alonso. “An Automated Method for Sensitivity Analysis Using Complex Variables.” In 38th Aerospace Sciences Meeting and Exhibit. Reno, NV, U.S.A.: American Institute of Aeronautics and Astronautics, 2000. https://doi.org/10.2514/6.2000-689.
Version History
Introduced in R2022b