Skip to content

Commit

Permalink
collect array broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Mar 5, 2024
1 parent 98d633a commit 0cddf4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ode_system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ function GainScheduledStateSpace(systems, vt; interpolator, x = zeros(systems[1]
[Differential(t)(x[i]) ~ sum(A[i, k] * x[k] for k in 1:nx) +
sum(B[i, j] * (input.u[j] - u0[j]) for j in 1:nu)
for i in 1:nx];
output.u .~ C * x .+ D * (input.u .- u0) .+ y0
collect(output.u .~ C * x .+ D * (input.u .- u0) .+ y0)
]
compose(ODESystem(eqs, t, name = name), [input, output, scheduling_input])
end
Expand Down

0 comments on commit 0cddf4b

Please sign in to comment.