Skip to content

Commit 141d162

Browse files
committed
changed: reformulation
1 parent 54dcc38 commit 141d162

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/LinearMPCext.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ function Base.convert(::Type{LinearMPC.MPC}, mpc::ModelPredictiveControl.LinMPC)
4747
c_x̂ = -mpc.con.A_x̂min[:, end]
4848
if sum(mpc.con.i_b) > 1 # ignore the slack variable ϵ bound
4949
if issoft(C_u) || issoft(C_Δu) || issoft(C_y) || issoft(C_x̂)
50-
@warn "The LinearMPC conversion applies an approximate conversion " *
51-
"of the soft constraints.\n You may need to adjust the soft_weight "*
52-
"field of the LinearMPC.MPC object to replicate behaviors."
50+
@warn "The LinearMPC conversion is approximate for the soft constraints.\n"*
51+
"You may need to adjust the soft_weight field of the "*
52+
"LinearMPC.MPC object to replicate behaviors."
5353
end
5454
end
5555
# LinearMPC relies on a different softening mechanism (new implicit slacks for each

0 commit comments

Comments
 (0)