Skip to content

Commit 0d2a5ae

Browse files
committed
debug: terminal constraint softness to 1.0 by default
This is what is written in the documentation and the logical default, since a terminal constraint can lead to infeasibility.
1 parent 51cc8ad commit 0d2a5ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controller/construct.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,8 @@ function init_defaultcon_mpc(
661661
x̂0min, x̂0max = fill(convert(NT,-Inf), nx̂), fill(convert(NT,+Inf), nx̂)
662662
c_umin, c_umax = fill(zero(NT), nu), fill(zero(NT), nu)
663663
c_Δumin, c_Δumax = fill(zero(NT), nu), fill(zero(NT), nu)
664-
c_ymin, c_ymax = fill(one(NT), ny), fill(one(NT), ny)
665-
c_x̂min, c_x̂max = fill(zero(NT), nx̂), fill(zero(NT), nx̂)
664+
c_ymin, c_ymax = fill(one(NT), ny), fill(one(NT), ny)
665+
c_x̂min, c_x̂max = fill(one(NT), nx̂), fill(one(NT), nx̂)
666666
U0min, U0max, ΔUmin, ΔUmax, Y0min, Y0max =
667667
repeat_constraints(Hp, Hc, u0min, u0max, Δumin, Δumax, y0min, y0max)
668668
C_umin, C_umax, C_Δumin, C_Δumax, C_ymin, C_ymax =

0 commit comments

Comments
 (0)