Skip to content

Commit 2410fb9

Browse files
committed
doc: minor modif in setconstraint!
1 parent 5c87b5c commit 2410fb9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/controller/construct.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ end
3838
@doc raw"""
3939
setconstraint!(mpc::PredictiveController; <keyword arguments>) -> mpc
4040
41-
Set the constraint parameters of the [`PredictiveController`](@ref) `mpc`.
41+
Set the bound constraint parameters of the [`PredictiveController`](@ref) `mpc`.
4242
4343
The predictive controllers support both soft and hard constraints, defined by:
4444
```math
@@ -329,7 +329,7 @@ function init_matconstraint_mpc(::LinModel{NT},
329329
i_b = [i_Umin; i_Umax; i_ΔŨmin; i_ΔŨmax; i_Ymin; i_Ymax; i_x̂min; i_x̂max]
330330
i_g = BitVector()
331331
if isempty(args)
332-
A = zeros(NT, length(i_b), 0)
332+
A = nothing
333333
else
334334
A_Umin, A_Umax, A_ΔŨmin, A_ΔŨmax, A_Ymin, A_Ymax, A_x̂min, A_x̂max = args
335335
A = [A_Umin; A_Umax; A_ΔŨmin; A_ΔŨmax; A_Ymin; A_Ymax; A_x̂min; A_x̂max]
@@ -344,7 +344,7 @@ function init_matconstraint_mpc(::SimModel{NT},
344344
i_b = [i_Umin; i_Umax; i_ΔŨmin; i_ΔŨmax]
345345
i_g = [i_Ymin; i_Ymax; i_x̂min; i_x̂max]
346346
if isempty(args)
347-
A = zeros(NT, length(i_b), 0)
347+
A = nothing
348348
else
349349
A_Umin, A_Umax, A_ΔŨmin, A_ΔŨmax, _ , _ , _ , _ = args
350350
A = [A_Umin; A_Umax; A_ΔŨmin; A_ΔŨmax]

src/estimator/mhe/construct.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ end
421421
@doc raw"""
422422
setconstraint!(estim::MovingHorizonEstimator; <keyword arguments>) -> estim
423423
424-
Set the constraint parameters of the [`MovingHorizonEstimator`](@ref) `estim`.
424+
Set the bound constraint parameters of the [`MovingHorizonEstimator`](@ref) `estim`.
425425
426426
It supports both soft and hard constraints on the estimated state ``\mathbf{x̂}``, process
427427
noise ``\mathbf{ŵ}`` and sensor noise ``\mathbf{v̂}``:

0 commit comments

Comments
 (0)