Skip to content

Commit 5eb8642

Browse files
committed
test: looser tolerances
1 parent ad4147c commit 5eb8642

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/5_test_extensions.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@
3232
end
3333
N = 50
3434
y_data, u_data1, u_data2 = sim_both(model, mpc1, mpc2, N)
35-
@test u_data1 u_data2 atol=1e-6
35+
@test u_data1 u_data2 atol=1e-3 rtol=1e-3
3636

3737
mpc_ms = LinMPC(model; transcription=MultipleShooting(), optim)
3838
@test_throws ErrorException LinearMPC.MPC(mpc_ms)
3939
mpc_kf = LinMPC(KalmanFilter(model, direct=false); optim)
4040
@test_throws ErrorException LinearMPC.MPC(mpc_kf)
4141
mpc_osqp = LinMPC(model)
42-
"LinearMPC relies on DAQP, and the solver in the mpc object " *
43-
"is currently $(JuMP.solver_name(mpc.optim)).\n" *
44-
"The results in closed-loop may be different."
4542
@test_logs(
4643
(:warn, "LinearMPC relies on DAQP, and the solver in the mpc object is currently "*
4744
"OSQP.\nThe results in closed-loop may be different."),

0 commit comments

Comments
 (0)