desr – Differential Equation Symmetry Reduction
Introduction
desr is a package used for Differential Equation Symmetry Reduction and is particularly useful for reducing the number of parameters in dynamical systems.
desr implements and extends algorithms originally outlined by Evelyne Hubert and George Labahn [HL13]. It further implements reduction on systems with equality constraints and initial conditions.
The preprint [THM+25] describes an earlier form of this work. It pre-dates the corrected symbol ordering and the Hermite multiplier normal form that arrived in version 2.0, so the reductions it reports are not the ones this version produces; a revision is in preparation.
The Master’s dissertation Differential Algebra and Applications that inspired this project places the algorithms into the theoretical framework of differential algebraic geometry. The dissertation further shows how to extend them to parameter reduction of arbitrary systems of partial differential equations, though this is not yet implemented in this software.
Installing
From PyPI:
pip install desr
The figures also need matplotlib, which desr does not install:
pip install matplotlib
From a clone of the repository:
pip install .
Running the tests
The test suite is in tests/ and runs with python -m pytest tests/. It needs
matplotlib, which desr itself does not.
Doctests are included in most files. To run them, from top level run sphinx-build -b doctest docs/source/ build/, or run the individual submodule of desr as a script, e.g. python -m doctest -v module.py
Building the documentation
The documentation is hosted online at readthedocs.
Sphinx - Used to generate the docs.
Contributing
Pull requests and issues on the GitHub repo are most certainly welcome.
License
This project is licensed under the Apache 2.0 License.
Acknowledgments
Dr. Heather Harrington and Dr. Emilie Dufresne for their supervision of the dissertation.
Thomas Close, whose diophantine module earlier versions of desr used for Hermite normal form calculations.
Contents
- Examples
- Michaelis-Menten basic
- Michaelis-Menten with initial conditions and a constant
- Multiple timescales: Segel-Slemrod analysis
- Extending invariants in four-variable Michaelis-Menten
- Numerical solution and reverse translation
- Recovering auxiliaries by quadrature
- A change of variables never changes # scaling symmetries
- A two-compartment model
- Signalling networks
- A cell cycle control network
- Symbol kinds in desr
- The three reduction schemes
- Isolating the clock
- Systems with no scaling symmetry
- Reducing a reduced system is idempotent
- Dimensions, units and normalisation
- Visual representations of symmetry reduction
- Chemical Reaction Networks
- ODETranslator and Reduction of ODESystems
- Systems of ODEs
- Hermite and Smith Normal Forms
- desr Reference
- Bibliography