Skip to content

Commit 50a90df

Browse files
committed
added: additional details in the observability error message
1 parent 44dba57 commit 50a90df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/estimator/construct.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ function augment_model(model::LinModel{NT}, As, Cs_u, Cs_y; verify_obsv=true) wh
156156
if verify_obsv && !ControlSystemsBase.observability(Â, Ĉ)[:isobservable]
157157
error("The augmented model is unobservable. You may try to use 0 integrator on "*
158158
"model integrating outputs with nint_ym parameter. Adding integrators at both "*
159-
"inputs (nint_u) and outputs (nint_ym) can also violate observability.")
159+
"inputs (nint_u) and outputs (nint_ym) can also violate observability. If the "*
160+
"model is still unobservable without any integrators, you may need to call "*
161+
"sminreal or minreal on your system.")
160162
end
161163
x̂op, f̂op = [model.xop; zeros(nxs)], [model.fop; zeros(nxs)]
162164
return Â, B̂u, Ĉ, B̂d, D̂d, x̂op, f̂op

0 commit comments

Comments
 (0)