.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/09_tds_control_manual/example_2_01.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_09_tds_control_manual_example_2_01.py: Example 2.1 - Stability analysis of retarded DDE ================================================ We consider the following retarded delay differential equation (RDDE) from :cite:`verheyden2008efficient` Section 6.1: .. math:: \dot{x}(t) = \begin{bmatrix} -1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & -10 & -4 \\ 0 & 0 & 4 & -10 \end{bmatrix} x(t) + \begin{bmatrix} 3 & 3 & 3 & 3\\ 0 & -1.5 & 0 & 0 \\ 0 & 0 & 3 & -5 \\ 0 & 5 & 5 & 5 \end{bmatrix} x(t-1). We will follow the steps from :cite:`appeltans2023analysis` Section 2.2 to achive the same results as presented there, i.e. we will 1. create the `RDDE` matrix representation 2. compute characteristic roots via the `tdcpy.roots` function 3. plot the computed characteristic roots using `tdcpy.plot.eigen_plot` function .. bibliography:: :filter: {"auto_examples/tds_control_manual/example_2_1"} & docnames .. GENERATED FROM PYTHON SOURCE LINES 40-62 .. image-sg:: /auto_examples/09_tds_control_manual/images/sphx_glr_example_2_01_001.png :alt: example 2 01 :srcset: /auto_examples/09_tds_control_manual/images/sphx_glr_example_2_01_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import numpy as np import tdcpy import tdcpy.plot # Create RDDE matrix representation A0 = np.array([[-1, 0, 0, 0], [0, 1, 0, 0], [0, 0, -10, -4], [0, 0, 4, -10]]) A1 = np.array([[3, 3, 3, 3], [0, -1.5, 0, 0], [0, 0, 3, -5], [0, 5, 5, 5]]) rdde = tdcpy.RDDE(A=[A0, A1], hA=[0, 1]) cr, info = tdcpy.roots(rdde, r=-2.5) tdcpy.plot.eigen_plot(cr) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.174 seconds) .. _sphx_glr_download_auto_examples_09_tds_control_manual_example_2_01.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: example_2_01.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: example_2_01.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: example_2_01.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_