@@ -20,7 +20,7 @@ Initial value of integrator state ``x`` can be set with `x`
2020@mtkmodel Integrator begin
2121 @extend u, y = siso = SISO ()
2222 @variables begin
23- x (t) = 0.0 , [ description = " State of Integrator" ]
23+ x (t), [guess = 0.0 , description = " State of Integrator" ]
2424 end
2525 @parameters begin
2626 k = 1 , [description = " Gain" ]
@@ -65,7 +65,7 @@ Initial value of the state ``x`` can be set with `x`.
6565@mtkmodel Derivative begin
6666 @extend u, y = siso = SISO ()
6767 @variables begin
68- x (t) = 0.0 , [ description = " Derivative-filter state" ]
68+ x (t), [guess = 0.0 , description = " Derivative-filter state" ]
6969 end
7070 @parameters begin
7171 T = T, [description = " Time constant" ]
@@ -122,7 +122,7 @@ See also [`SecondOrder`](@ref)
122122 lowpass = true
123123 end
124124 @variables begin
125- x (t) = 0.0 , [ description = " State of FirstOrder filter" ]
125+ x (t), [guess = 0.0 , description = " State of FirstOrder filter" ]
126126 end
127127 @parameters begin
128128 T = T, [description = " Time constant" ]
@@ -545,7 +545,7 @@ linearized around the operating point `x₀, u₀`, we have `y0, u0 = h(x₀, u
545545 end
546546 @named input = RealInput (nin = nu)
547547 @named output = RealOutput (nout = ny)
548- @variables x (t)[1 : nx]= x [
548+ @variables x (t)[1 : nx]= x [ # FIXME : should it be guess = x, not default?
549549 description = " State variables of StateSpace system $name "
550550 ]
551551 # pars = @parameters A=A B=B C=C D=D # This is buggy
@@ -618,7 +618,7 @@ See also [`StateSpace`](@ref) which handles MIMO systems, as well as [ControlSys
618618 @parameters a_end = ifelse (a[end ] > 100 * symbolic_eps (sqrt (a' * a)), a[end ], 1.0 )
619619
620620 pars = [collect (b); a; collect (bb); d; a_end]
621- @variables begin
621+ @variables begin # FIXME : should it be guesses, not default?
622622 x (t)[1 : nx] = zeros (nx),
623623 [description = " State of transfer function on controller canonical form" ]
624624 x_scaled (t)[1 : nx] = collect (x) * a_end, [description = " Scaled vector x" ]
0 commit comments