Skip to content

Commit 2624790

Browse files
committed
Update docstring for lqr
1 parent 88a7d01 commit 2624790

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

control/statefbk.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def lqr(*args, **keywords):
147147
The lqr() function computes the optimal state feedback controller
148148
that minimizes the quadratic cost
149149
150-
.. math:: J = \int_0^\infty x' Q x + u' R u + 2 x' N u
150+
.. math:: J = \int_0^\infty (x' Q x + u' R u + 2 x' N u) dt
151151
152152
The function can be called with either 3, 4, or 5 arguments:
153153
@@ -156,6 +156,9 @@ def lqr(*args, **keywords):
156156
* ``lqr(A, B, Q, R)``
157157
* ``lqr(A, B, Q, R, N)``
158158
159+
where `sys` is an `Lti` object, and `A`, `B`, `Q`, `R`, and `N` are
160+
2d arrays or matrices of appropriate dimension.
161+
159162
Parameters
160163
----------
161164
A, B: 2-d array

0 commit comments

Comments
 (0)