simbio.complexstep.abs
Description
returns M = simbio.complexstep.abs(X)M, where M = abs(real(X)) + 1i*imag(X).
simbio.complexstep.abs is equivalent to abs when the input is real.
When you have a SimBiology model with a custom function that calls
absand you are performing local sensitivity analysis on the model, replaceabswithsimbio.complexstep.absin your custom function.You do not need to update SimBiology expressions (such as reaction rates or rules) that directly call
abs. SimBiology automatically replacesabswithsimbio.complexstep.abswhenever:You calculate local sensitivities using
sbiosimulate, aSimFunctionSensitivityobject, or the Calculate Sensitivities program.sbiofitorfitproblemuses local sensitivity analysis to determine the gradients of the objective function during parameter estimation.
simbio.complexstep.absis not differentiable when the real part of the input is 0 [1]. For more information, see Local Sensitivity Analysis (LSA).
Examples
Input Arguments
Output 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
![Figure contains an axes object. The axes object with title States versus Time, xlabel Time, ylabel States contains 3 objects of type line. These objects represent netFlux, d[netFlux]/d[kf], d[netFlux]/d[kr].](../../examples/simbio/win64/UseReplacementsForAbsMinAndMaxInCustomFunctionsForLSAExample_01.png)