From 5f7ef1c9ba527bcb4619222b3da8f067b0b8e8b2 Mon Sep 17 00:00:00 2001 From: franckgaga Date: Thu, 1 Oct 2026 16:48:23 -0400 Subject: [PATCH 1/3] debug: `linearize` recuperate `unit` field --- src/model/linearization.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/linearization.jl b/src/model/linearization.jl index 1fcb32792..cbc7e4a1e 100644 --- a/src/model/linearization.jl +++ b/src/model/linearization.jl @@ -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 From 43bad05b4f4137ba4148e318a067997a27ee7b40 Mon Sep 17 00:00:00 2001 From: franckgaga Date: Thu, 1 Oct 2026 16:49:12 -0400 Subject: [PATCH 2/3] doc: minor correction --- docs/src/manual/nonlinmpc2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/manual/nonlinmpc2.md b/docs/src/manual/nonlinmpc2.md index e82ed1acd..54af2b88e 100644 --- a/docs/src/manual/nonlinmpc2.md +++ b/docs/src/manual/nonlinmpc2.md @@ -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} From efdcc1a1f53ebcd24ed4d0dee215f8ee73c23901 Mon Sep 17 00:00:00 2001 From: franckgaga Date: Thu, 1 Oct 2026 18:15:50 -0400 Subject: [PATCH 3/3] doc: delete the concrete types in `ManualEstimator` It supports all `SimModel`s, hence `LinModel`, `NonLinModel` and `NonLinModelDAE`. The list is a bit too long, let's just delete it. --- src/estimator/manual.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/estimator/manual.jl b/src/estimator/manual.jl index bf41dd80b..b4014eb9a 100644 --- a/src/estimator/manual.jl +++ b/src/estimator/manual.jl @@ -52,7 +52,7 @@ end @doc raw""" ManualEstimator(model::SimModel; ) -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