Skip to content

Commit 4103245

Browse files
committed
changed: more precise error for LinModel with non-zero D matrix
1 parent 5606424 commit 4103245

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/model/linmodel.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ function LinModel(
150150
sysu = sminreal(sys[:,i_u]) # remove states associated to measured disturbances d
151151
sysd = sminreal(sys[:,i_d]) # remove states associated to manipulates inputs u
152152
if !iszero(sysu.D)
153-
error("State matrix D must be 0 for columns associated to manipulated inputs u")
153+
error("LinModel only supports strictly proper systems (state matrix D must be 0 "*
154+
"for columns associated to manipulated inputs u)")
154155
end
155156
if iscontinuous(sys)
156157
isnothing(Ts) && error("Sample time Ts must be specified if sys is continuous")

0 commit comments

Comments
 (0)