We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 996436c commit 14b871aCopy full SHA for 14b871a
src/controller/construct.jl
@@ -64,7 +64,7 @@ struct ControllerWeights{
64
if !isinf_C
65
# ΔŨ = [ΔU; ϵ] (ϵ is the slack variable)
66
Ñ_Hc = [N_Hc zeros(NT, nΔU, 1); zeros(NT, 1, nΔU) C]
67
- Ñ_Hc = NW(Ñ_Hc) # preserve special type e.g. Diagonal
+ isdiag(N_Hc) && (Ñ_Hc = Diagonal(Ñ_Hc)) # NW(Ñ_Hc) does not work on Julia 1.10
68
else
69
# ΔŨ = ΔU (only hard constraints)
70
Ñ_Hc = N_Hc
0 commit comments