Skip to content

Commit e7538cf

Browse files
committed
debug : evalY with custom type T instead of Float64
1 parent 3b72edc commit e7538cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/nonlinmpc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ end
334334
Evaluate the outputs predictions ``\\mathbf{Ŷ}`` when `model` is not a [`LinModel`](@ref).
335335
"""
336336
function evalŶ(mpc::NonLinMPC, model::SimModel, x̂d, d0, D̂0, U0::Vector{T}) where {T}
337-
Ŷd0 = Vector{Float64}(undef, model.ny*mpc.Hp)
337+
Ŷd0 = Vector{T}(undef, model.ny*mpc.Hp)
338338
x̂d::Vector{T} = copy(x̂d)
339339
for j=1:mpc.Hp
340340
u0 = U0[(1 + model.nu*(j-1)):(model.nu*j)]

0 commit comments

Comments
 (0)