From 3a06aed9c90585c9e0ddf5d0a49ce26d31ac6a7a Mon Sep 17 00:00:00 2001 From: Pierre Haessig Date: Tue, 21 May 2024 09:53:50 +0200 Subject: [PATCH 1/2] add "See Also" to acker's doc --- control/statefbk.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/control/statefbk.py b/control/statefbk.py index d996264ab..2ac74b3c8 100644 --- a/control/statefbk.py +++ b/control/statefbk.py @@ -269,6 +269,10 @@ def acker(A, B, poles): ------- K : 2D array (or matrix) Gains such that A - B K has given eigenvalues + + See Also + -------- + place, place_varga """ # Convert the inputs to matrices From 4f0e9b7142b605979e84ef093fc3afdddbd3287d Mon Sep 17 00:00:00 2001 From: Pierre Haessig Date: Thu, 23 May 2024 11:31:08 +0200 Subject: [PATCH 2/2] fix place_varga docstring --- control/statefbk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/control/statefbk.py b/control/statefbk.py index 2ac74b3c8..59a54bf69 100644 --- a/control/statefbk.py +++ b/control/statefbk.py @@ -151,7 +151,7 @@ def place_varga(A, B, p, dtime=False, alpha=None): K = place_varga(A, B, p, dtime=False, alpha=None) Required Parameters - ---------- + ------------------- A : 2D array_like Dynamics matrix B : 2D array_like @@ -160,7 +160,7 @@ def place_varga(A, B, p, dtime=False, alpha=None): Desired eigenvalue locations Optional Parameters - --------------- + ------------------- dtime : bool False for continuous time pole placement or True for discrete time. The default is dtime=False. @@ -193,7 +193,7 @@ def place_varga(A, B, p, dtime=False, alpha=None): -------- >>> A = [[-1, -1], [0, 1]] >>> B = [[0], [1]] - >>> K = place_varga(A, B, [-2, -5]) + >>> K = ct.place_varga(A, B, [-2, -5]) See Also --------