Skip to content

Commit 0b71c79

Browse files
committed
Fix vector
1 parent 6b2d515 commit 0b71c79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/ControlSystemsBase/ext/ControlSystemsBaseImplicitDifferentiationExt.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,12 @@ import ControlSystemsBase: hinfnorm
201201
function forward_hinfnorm(pars; kwargs...)
202202
(; A,B,C,D) = pars
203203
sys = ss(A,B,C,D)
204-
hinfnorm(sys; kwargs...)
204+
γ, w = hinfnorm(sys; kwargs...)
205+
return [γ], w
205206
end
206207

207-
function conditions_hinfnorm(pars, γ, w; tol=1e-10)
208+
function conditions_hinfnorm(pars, γ_vec, w; tol=1e-10)
209+
γ = only(γ_vec)
208210
(; A,B,C,D) = pars
209211
sys = ss(A,B,C,D)
210212
[opnorm(freqresp(sys, w)) - γ]
@@ -264,4 +266,3 @@ end
264266

265267

266268
end # module
267-

0 commit comments

Comments
 (0)