@@ -131,7 +131,7 @@ This method uses the default state estimator :
131131- `Lwt=fill(0.0,model.nu)` : main diagonal of ``\m athbf{L}`` weight matrix (vector).
132132- `Cwt=1e5` : slack variable weight ``C`` (scalar), use `Cwt=Inf` for hard constraints only.
133133- `Ewt=0.0` : economic costs weight ``E`` (scalar).
134- - `JE=(_,_,_)->0` : economic function ``J_E(\m athbf{U}_E, \m athbf{Ŷ}_E, \m athbf{D̂}_E)``.
134+ - `JE=(_,_,_)->0.0 ` : economic function ``J_E(\m athbf{U}_E, \m athbf{Ŷ}_E, \m athbf{D̂}_E)``.
135135- `M_Hp` / `N_Hc` / `L_Hp` : diagonal matrices ``\m athbf{M}_{H_p}, \m athbf{N}_{H_c},
136136 \m athbf{L}_{H_p}``, for time-varying weights (generated from `Mwt/Nwt/Lwt` args if omitted).
137137- `optim=JuMP.Model(Ipopt.Optimizer)` : nonlinear optimizer used in the predictive
@@ -176,7 +176,7 @@ function NonLinMPC(
176176 Lwt = fill (DEFAULT_LWT, model. nu),
177177 Cwt = DEFAULT_CWT,
178178 Ewt = DEFAULT_EWT,
179- JE:: Function = (_,_,_) -> 0 ,
179+ JE:: Function = (_,_,_) -> 0.0 ,
180180 M_Hp = nothing ,
181181 N_Hc = nothing ,
182182 L_Hp = nothing ,
@@ -196,7 +196,7 @@ function NonLinMPC(
196196 Lwt = fill (DEFAULT_LWT, model. nu),
197197 Cwt = DEFAULT_CWT,
198198 Ewt = DEFAULT_EWT,
199- JE:: Function = (_,_,_) -> 0 ,
199+ JE:: Function = (_,_,_) -> 0.0 ,
200200 M_Hp = nothing ,
201201 N_Hc = nothing ,
202202 L_Hp = nothing ,
@@ -239,7 +239,7 @@ function NonLinMPC(
239239 Lwt = fill (DEFAULT_LWT, estim. model. nu),
240240 Cwt = DEFAULT_CWT,
241241 Ewt = DEFAULT_EWT,
242- JE:: JEFunc = (_,_,_) -> 0 ,
242+ JE:: JEFunc = (_,_,_) -> 0.0 ,
243243 M_Hp = nothing ,
244244 N_Hc = nothing ,
245245 L_Hp = nothing ,
0 commit comments