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 |
Conversion from PyDMD-style linear operators.
Create a |
|
Create a |
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
Core reduction objects and shared reduction utilities.
Working system used to build and compare reduced models. |
|
Utility methods for reduction result objects. |
|
Compute the full-vs-reduced output error from systems. |
|
Compute robustness metrics from systems. |
|
Create a base |
Time-scale separation reduction methods.
Solve a time-scale separation reduction for a system. |
|
Explore candidate QSS reductions for an autonomous system. |
|
Compute candidate QSS reductions for systems with explicit inputs. |
Symbolic helper functions for reduction algorithms.
Check whether variables appear in symbolic ODE expressions. |
|
Solve collapsed-state equations and substitute into ODEs. |
|
Solve each collapsed variable from its steady-state equation. |
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.
Not 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 an ODE skeleton with SymPy symbols. |
|
Returns Sympy object for the given ODE function |
|
Return an SBML document for a SymPy-backed model. |
|
Load an SBML file as a System object. |
load_sbml(filename, outputs=None, rename_species=None, **kwargs) accepts
an optional outputs argument naming one species or a list of species to
preserve as linear outputs in the returned System. Output names must exactly
match SBML species identifiers. If an output cannot be matched, load_sbml
raises a ValueError listing the available species instead of failing with an
internal lookup error.
The optional rename_species argument maps long SBML species identifiers to
shorter SymPy symbol names for subsequent AutoReduce analysis.
Convenience functions for AutoReduce solvers.
Create an ODE solver for a system. |
|
Return state, output, and local sensitivity solutions. |
|
Create an SSM solver for a system. |
|
Solve a system over the given timepoints. |
|
Compute the local sensitivity matrix for a system. |
|
Solve the coupled state and local sensitivity equations. |
|
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 |