Skip to content

Commit d0c71e3

Browse files
committed
changed: remove useless addition
1 parent 85c8f6f commit d0c71e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controller/transcription.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -891,9 +891,9 @@ function linconstraint!(mpc::PredictiveController, model::NonLinModel, ::Transcr
891891
n += nΔŨ
892892
mpc.con.b[(n+1):(n+nΔŨ)] .= @. +mpc.con.ΔŨmax
893893
n += nΔŨ
894-
mpc.con.b[(n+1):(n+nx̂)] .= @. -mpc.con.x̂0min + fx̂
894+
mpc.con.b[(n+1):(n+nx̂)] .= @. -mpc.con.x̂0min
895895
n += nx̂
896-
mpc.con.b[(n+1):(n+nx̂)] .= @. +mpc.con.x̂0max - fx̂
896+
mpc.con.b[(n+1):(n+nx̂)] .= @. +mpc.con.x̂0max
897897
if any(mpc.con.i_b)
898898
lincon = mpc.optim[:linconstraint]
899899
JuMP.set_normalized_rhs(lincon, mpc.con.b[mpc.con.i_b])

0 commit comments

Comments
 (0)