Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix lqe docstring and input array type#483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletionscontrol/statefbk.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -41,7 +41,7 @@

# External packages and modules
import numpy as np
import scipy as sp

from . import statesp
from .mateqn import care
from .statesp import _ssmatrix
Expand All@@ -59,11 +59,11 @@ def place(A, B, p):

Parameters
----------
A : 2Darray
A : 2Darray_like
Dynamics matrix
B : 2Darray
B : 2Darray_like
Input matrix
p : 1Dlist
p : 1Darray_like
Desired eigenvalue locations

Returns
Expand DownExpand Up@@ -120,7 +120,7 @@ def place(A, B, p):
raise ControlDimension(err_str)

# Convert desired poles to numpy array
placed_eigs = np.array(p)
placed_eigs = np.atleast_1d(np.squeeze(np.asarray(p)))

result = place_poles(A_mat, B_mat, placed_eigs, method='YT')
K = result.gain_matrix
Expand All@@ -133,11 +133,11 @@ def place_varga(A, B, p, dtime=False, alpha=None):

Required Parameters
----------
A : 2Darray
A : 2Darray_like
Dynamics matrix
B : 2Darray
B : 2Darray_like
Input matrix
p : 1Dlist
p : 1Darray_like
Desired eigenvalue locations

Optional Parameters
Expand DownExpand Up@@ -201,7 +201,7 @@ def place_varga(A, B, p, dtime=False, alpha=None):

# Compute the system eigenvalues and convert poles to numpy array
system_eigs = np.linalg.eig(A_mat)[0]
placed_eigs = np.array(p)
placed_eigs = np.atleast_1d(np.squeeze(np.asarray(p)))

# Need a character parameter for SB01BD
if dtime:
Expand DownExpand Up@@ -264,9 +264,9 @@ def lqe(A, G, C, QN, RN, NN=None):

Parameters
----------
A, G : 2Darray
A, G : 2Darray_like
Dynamics and noise input matrices
QN, RN : 2Darray
QN, RN : 2Darray_like
Process and sensor noise covariance matrices
NN : 2D array, optional
Cross covariance matrix
Expand All@@ -292,8 +292,8 @@ def lqe(A, G, C, QN, RN, NN=None):

Examples
--------
>>>K, P, E = lqe(A, G, C, QN, RN)
>>>K, P, E = lqe(A, G, C, QN, RN, NN)
>>>L, P, E = lqe(A, G, C, QN, RN)
>>>L, P, E = lqe(A, G, C, QN, RN, NN)

See Also
--------
Expand DownExpand Up@@ -324,9 +324,9 @@ def acker(A, B, poles):

Parameters
----------
A, B : 2Darrays
A, B : 2Darray_like
State and input matrix of the system
poles : 1Dlist
poles : 1Darray_like
Desired eigenvalue locations

Returns
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp