4. Systems
AutoReduce represents models with system.system.System. A system stores
symbolic states, symbolic dynamics, parameters, initial conditions, and either
a linear output matrix or a nonlinear output function.
4.1. Core System
Use System when model equations are already available as SymPy expressions.
from sympy import Symbol
from autoreduce import System
x = Symbol("x")
k = Symbol("k")
system = System([x], [-k * x], params=[k], params_values=[1.0], x_init=[2.0])
4.2. python-control Adapter
The python-control adapter is implemented in autoreduce.system.control and
requires the control extra.
pip install "autoreduce[control]"
The adapter converts a control.NonlinearIOSystem into an AutoReduce
System by evaluating the python-control update and output functions with
symbolic states, inputs, and parameters.