The AutoReduce Library
This chapter documents the public modules, classes, and functions that make up AutoReduce.
Systems
Core symbolic representation of nonlinear dynamical systems.
Class that stores the system model in this form: x_dot = f(x, theta), y = Cx. |
Conversion from python-control input/output systems.
Create an AutoReduce |
Solvers
Numerical solvers for ordinary differential equation systems.
To solve the Model using scipy.odeint |
Local sensitivity analysis solvers.
Class that computes local sensitivity analysis coefficients for the given Model using a numerical approximation method discussed in doi: https://doi.org/10.1016/0021-9991(76)90007-3 Uses numerical method to find sensitivity analysis matrix (SSM). |
Reductions
Time-scale separation and model-reduction orchestration.
The class can be used to compute the various possible reduced models for the System object and then find out the best reduced model choice using doi : https://doi.org/10.1101/640276 |
|
For various utility methods developed on top of Reduce class and other utility functions |
|
Solve time-scale separation directly from a |
|
Check whether variables appear in symbolic ODE expressions. |
|
A function to solve using sympy and substitute into the equation |
|
Solve for each collapsed_variable from corresponding collapsed_dynamics one by one. |
|
Create a base |
Conservation-law reduction methods.
Find conserved species sets by summing ODE terms. |
|
Create conservation-law expressions from conserved species sets. |
|
Apply conservation laws to a system in place. |
|
Find and apply conservation laws to a |
Abundance-based model-reduction methods.
Raise until abundance-based reduction is implemented. |
Projection-based reduced models using PyDMD.
Fitted PyDMD model and the data used to construct it. |
|
Fit a dynamic mode decomposition model to state snapshots. |
|
Fit a dynamic mode decomposition with control model. |
Utilities
Model import and symbolic conversion utilities.
Directly load ODE with sympy |
|
Returns Sympy object for the given ODE function |
|
Return an SBML document for a SymPy-backed model. |
|
A function that takes in an SBML file and returns x,f,P,params_values. |
Convenience constructors for solvers and reducible systems.
For the given timepoints, create an ODE class object for this System object. |
|
For the given timepoints, returns the full solution (states, sensitivity coefficients, outputs) |
|
For the given timepoints, create an SSM class object for this System object. |
|
Create a |
|
Solve a |
|
Compute the local sensitivity matrix for a |
|
Solve the coupled state and local sensitivity equations. |
|
Create a |
|
Solve a system over time and return transposed state trajectories. |
SBML model construction utilities.
Creates an SBML Level 3 Version 2 model with some fixed standard settings. |
|
Add species to SBML model |
|
Add reaction to given model |
|
Adds global parameters to the SBML Model |