@@ -13,10 +13,9 @@ struct SimResult{NT<:Real, O<:Union{SimModel, StateEstimator, PredictiveControll
1313end
1414
1515"""
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>)
2019
2120Manually construct a `SimResult` to quickly plot `obj` simulations.
2221
@@ -28,15 +27,15 @@ Simply call `plot` on them.
2827!!! info
2928 Keyword arguments in *`italic`* are non-Unicode alternatives.
3029
31- - `obj::Union{SimModel,StateEstimator,PredictiveController} ` : simulated object
30+ - `obj` : simulated [`SimModel`](@ref)/[`StateEstimator`](@ref)/[`PredictiveController`](@ref)
3231- `U_data` : manipulated inputs
3332- `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
4039
4140# Examples
4241```jldoctest
845844
846845getUcon (mpc:: PredictiveController , _ ) = mpc. con. U0min+ mpc. Uop, mpc. con. U0max+ mpc. Uop
847846getYcon (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