ControlSystemsMTK: Easy Way to Initialize Output?

you can unset some variables by

u0 = [delay.output.u => 20.0; collect(delay.x[:] .=> nothing)]

this should prevent it from being over-determined


This works

u0 = [delay.output.u => 20.0; delay.x[5] => nothing]#; delay.x[4] => nothing; delay.x[3] => nothing]
prob = ODEProblem(sys, u0, (0.0, 10.0))
sol = solve(prob, Tsit5())

using Plots
display(plot(sol.t, sol[delay.output.u]))
sol[delay.output.u][1] ≈ 20.0
# true