Skip to content

Commit abf1af0

Browse files
committed
debug tests
1 parent 74a5f5c commit abf1af0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/controller/nonlinmpc.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ This method uses the default state estimator :
131131
- `Lwt=fill(0.0,model.nu)` : main diagonal of ``\mathbf{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(\mathbf{U}_E, \mathbf{Ŷ}_E, \mathbf{D̂}_E)``.
134+
- `JE=(_,_,_)->0.0` : economic function ``J_E(\mathbf{U}_E, \mathbf{Ŷ}_E, \mathbf{D̂}_E)``.
135135
- `M_Hp` / `N_Hc` / `L_Hp` : diagonal matrices ``\mathbf{M}_{H_p}, \mathbf{N}_{H_c},
136136
\mathbf{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

Comments
 (0)