Skip to content

Commit db9e43f

Browse files
authored
Merge pull request #79 from JuliaControl/nonunicode_alt_setmodel
non unicode alternation setmodel MPC
2 parents 6e44268 + 09bf1c5 commit db9e43f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/controller/execute.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,11 +539,14 @@ time-varying [`KalmanFilter`](@ref) instead. Note that the model is constant ove
539539
prediction horizon ``H_p``.
540540
541541
# Arguments
542+
!!! info
543+
Keyword arguments with *`emphasis`* are non-Unicode alternatives.
542544
543545
- `mpc::PredictiveController` : controller to set model and weights.
544546
- `model=mpc.estim.model` : new plant model ([`NonLinModel`](@ref) not supported).
545547
- `M_Hp=mpc.M_Hp` : new ``\mathbf{M_{H_p}}`` weight matrix.
546-
- `Ñ_Hc=mpc.Ñ_Hc` : new ``\mathbf{Ñ_{H_c}}`` weight matrix (see definition above).
548+
- `Ñ_Hc=mpc.Ñ_Hc` or *`Ntilde_Hc`* : new ``\mathbf{Ñ_{H_c}}`` weight matrix (see definition
549+
above).
547550
- `L_Hp=mpc.L_Hp` : new ``\mathbf{L_{H_p}}`` weight matrix.
548551
- additional keyword arguments are passed to `setmodel!(::StateEstimator)`.
549552
@@ -563,9 +566,10 @@ julia> mpc.estim.model.A[], mpc.estim.R̂[], mpc.M_Hp[]
563566
function setmodel!(
564567
mpc::PredictiveController,
565568
model = mpc.estim.model;
566-
M_Hp = mpc.M_Hp,
567-
Ñ_Hc = mpc.Ñ_Hc,
568-
L_Hp = mpc.L_Hp,
569+
M_Hp = mpc.M_Hp,
570+
Ntilde_Hc = mpc.Ñ_Hc,
571+
L_Hp = mpc.L_Hp,
572+
Ñ_Hc = Ntilde_Hc,
569573
kwargs...
570574
)
571575
x̂op_old = copy(mpc.estim.x̂op)

0 commit comments

Comments
 (0)