Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/manual/nonlinmpc2.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The following notation highlights three key concentrations in the model:
in which ``c_A`` represents the total concentration of the acid species in the reactor
(mol/L), composed of an undissociated acid ``\mathrm{H}\mathrm{Ac}`` and the acetate ion
``\mathrm{Ac}^-``. Substituting the constants, algebraic and state variables into the charge
balance leads the algebraic equation:
balance leads to the algebraic equation:

```math
0 = a_H + c_B - \frac{K_w}{a_H} - \frac{K_a c_A}{K_a + a_H}
Expand Down
2 changes: 1 addition & 1 deletion src/estimator/manual.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ end
@doc raw"""
ManualEstimator(model::SimModel; <keyword arguments>)

Construct a manual state estimator for `model` ([`LinModel`](@ref) or [`NonLinModel`](@ref)).
Construct a manual state estimator for `model`.

This [`StateEstimator`](@ref) type allows the construction of [`PredictiveController`](@ref)
objects but turns off the built-in state estimation. The user must manually provides the
Expand Down
2 changes: 1 addition & 1 deletion src/model/linearization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function linearize(model::SimModelODE{NT}; kwargs...) where NT<:Real
C = Matrix{NT}(undef, ny, nx)
Bd = Matrix{NT}(undef, nx, nd)
Dd = Matrix{NT}(undef, ny, nd)
linmodel = LinModel{NT}(A, Bu, C, Bd, Dd, model.Ts)
linmodel = LinModel{NT}(A, Bu, C, Bd, Dd, model.Ts, model.unit)
linmodel.uname .= model.uname
linmodel.xname .= model.xname
linmodel.yname .= model.yname
Expand Down
Loading