@@ -13,10 +13,9 @@ struct SimResult{NT<:Real, O<:Union{SimModel, StateEstimator, PredictiveControll
13
13
end
14
14
15
15
"""
16
- SimResult(
17
- obj::Union{SimModel,StateEstimator,PredictiveController}, U_data, Y_data, D_data=[];
18
- <keyword arguments>
19
- )
16
+ SimResult(obj::SimModel, U_data, Y_data, D_data=[]; <keyword arguments>)
17
+ SimResult(obj::StateEstimator, U_data, Y_data, D_data=[]; <keyword arguments>)
18
+ SimResult(obj::PredictiveController, U_data, Y_data, D_data=[]; <keyword arguments>)
20
19
21
20
Manually construct a `SimResult` to quickly plot `obj` simulations.
22
21
@@ -28,15 +27,15 @@ Simply call `plot` on them.
28
27
!!! info
29
28
Keyword arguments in *`italic`* are non-Unicode alternatives.
30
29
31
- - `obj::Union{SimModel,StateEstimator,PredictiveController} ` : simulated object
30
+ - `obj` : simulated [`SimModel`](@ref)/[`StateEstimator`](@ref)/[`PredictiveController`](@ref)
32
31
- `U_data` : manipulated inputs
33
32
- `Y_data` : plant outputs
34
- - `D_data` : measured disturbances
35
- - `X_data` : plant states
36
- - `X̂_data` or *`Xhat_data`* : estimated states
37
- - `Ŷ_data` or *`Yhat_data`* : estimated outputs
38
- - `Ry_data` : plant output setpoints
39
- - `Ru_data` : manipulated input setpoints
33
+ - `D_data=[] ` : measured disturbances
34
+ - `X_data=nothing ` : plant states
35
+ - `X̂_data=nothing ` or *`Xhat_data`* : estimated states
36
+ - `Ŷ_data=nothing ` or *`Yhat_data`* : estimated outputs
37
+ - `Ry_data=nothing ` : plant output setpoints
38
+ - `Ru_data=nothing ` : manipulated input setpoints
40
39
41
40
# Examples
42
41
```jldoctest
845
844
846
845
getUcon (mpc:: PredictiveController , _ ) = mpc. con. U0min+ mpc. Uop, mpc. con. U0max+ mpc. Uop
847
846
getYcon (mpc:: PredictiveController , _ ) = mpc. con. Y0min+ mpc. Yop, mpc. con. Y0max+ mpc. Yop
848
- getX̂con (estim:: StateEstimator , nx̂) = fill (- Inf , 2 nx̂), fill (+ Inf , 2 nx̂)
847
+ getX̂con (estim:: StateEstimator , nx̂) = fill (- Inf , 2 nx̂), fill (+ Inf , 2 nx̂)
0 commit comments