Number of problems | 64 |
---|---|
Benchmark version | 2.3.0 |
Date | 2024-12-19 11:30:03.167372+00:00 |
CPU | 12th Gen Intel(R) Core(TM) i7-12800H |
Run by | @stephane-caron |
Benchmark reports are copious as we aim to document comparison factors as much as possible. You can also jump to results directly.
Problems arising from model predictive control in robotics.
solver | version |
---|---|
clarabel | 0.9.0 |
cvxopt | 1.3.2 |
daqp | 0.6.0 |
ecos | 2.0.14 |
gurobi | 12.0.0 (size-limited) |
highs | 1.8.1 |
hpipm | 0.2 |
osqp | 0.6.7.post3 |
piqp | 0.4.2 |
proxqp | 0.6.7 |
qpalm | 1.2.5 |
qpoases | 3.2.1 |
qpswift | 1.0.0 |
quadprog | 0.1.13 |
scs | 3.2.7 |
All solvers were called via qpsolvers v4.4.0.
Property | Value |
---|---|
arch |
X86_64 |
arch_string_raw |
x86_64 |
bits |
64 |
brand_raw |
12th Gen Intel(R) Core(TM) i7-12800H |
count |
20 |
family |
6 |
flags |
3dnowprefetch , abm , acpi , adx , aes , aperfmperf , apic , arat , arch_capabilities , arch_lbr , arch_perfmon , art , avx , avx2 , avx_vnni , bmi1 , bmi2 , bts , clflush , clflushopt , clwb , cmov , constant_tsc , cpuid , cpuid_fault , cx16 , cx8 , de , ds_cpl , dtes64 , dtherm , dts , epb , ept , ept_ad , erms , est , f16c , flexpriority , flush_l1d , fma , fpu , fsgsbase , fsrm , fxsr , gfni , hfi , ht , hwp , hwp_act_window , hwp_epp , hwp_notify , hwp_pkg_req , ibpb , ibrs , ibrs_enhanced , ibt , ida , intel_pt , invpcid , lahf_lm , lm , mca , mce , md_clear , mmx , monitor , movbe , movdir64b , movdiri , msr , mtrr , nonstop_tsc , nopl , nx , ospke , osxsave , pae , pat , pbe , pcid , pclmulqdq , pconfig , pdcm , pdpe1gb , pebs , pge , pku , pln , pni , popcnt , pse , pse36 , pts , rdpid , rdrand , rdrnd , rdseed , rdtscp , rep_good , sdbg , sep , serialize , sha , sha_ni , smap , smep , smx , split_lock_detect , ss , ssbd , sse , sse2 , sse4_1 , sse4_2 , ssse3 , stibp , syscall , tm , tm2 , tme , tpr_shadow , tsc , tsc_adjust , tsc_deadline_timer , tsc_known_freq , tscdeadline , umip , user_shstk , vaes , vme , vmx , vnmi , vpclmulqdq , vpid , waitpkg , x2apic , xgetbv1 , xsave , xsavec , xsaveopt , xsaves , xtopology , xtpr |
l1_data_cache_size |
557056 |
l1_instruction_cache_size |
720896 |
l2_cache_associativity |
8 |
l2_cache_line_size |
2048 |
l2_cache_size |
11.5 MiB |
l3_cache_size |
25165824 |
model |
154 |
python_version |
3.11.10.final.0 (64 bit) |
stepping |
3 |
vendor_id_raw |
GenuineIntel |
There are 4 settings: default, high_accuracy, low_accuracy and mid_accuracy. They validate solutions using the following tolerances:
tolerance | default | high_accuracy | low_accuracy | mid_accuracy |
---|---|---|---|---|
dual |
1 | 1e-09 | 0.001 | 1e-06 |
gap |
1 | 1e-09 | 0.001 | 1e-06 |
primal |
1 | 1e-09 | 0.001 | 1e-06 |
runtime |
10 | 10 | 10 | 10 |
Solvers for each settings are configured as follows:
solver | parameter | default | high_accuracy | low_accuracy | mid_accuracy |
---|---|---|---|---|---|
clarabel | tol_feas |
- | 1e-09 | 0.001 | 1e-06 |
clarabel | tol_gap_abs |
- | 1e-09 | 0.001 | 1e-06 |
clarabel | tol_gap_rel |
- | 0.0 | 0.0 | 0.0 |
cvxopt | feastol |
- | 1e-09 | 0.001 | 1e-06 |
daqp | dual_tol |
- | 1e-09 | 0.001 | 1e-06 |
daqp | primal_tol |
- | 1e-09 | 0.001 | 1e-06 |
ecos | feastol |
- | 1e-09 | 0.001 | 1e-06 |
gurobi | FeasibilityTol |
- | 1e-09 | 0.001 | 1e-06 |
gurobi | OptimalityTol |
- | 1e-09 | 0.001 | 1e-06 |
gurobi | TimeLimit |
10.0 | 10.0 | 10.0 | 10.0 |
highs | dual_feasibility_tolerance |
- | 1e-09 | 0.001 | 1e-06 |
highs | primal_feasibility_tolerance |
- | 1e-09 | 0.001 | 1e-06 |
highs | time_limit |
10.0 | 10.0 | 10.0 | 10.0 |
hpipm | tol_dual_gap |
- | 1e-09 | 0.001 | 1e-06 |
hpipm | tol_eq |
- | 1e-09 | 0.001 | 1e-06 |
hpipm | tol_ineq |
- | 1e-09 | 0.001 | 1e-06 |
hpipm | tol_stat |
- | 1e-09 | 0.001 | 1e-06 |
osqp | eps_abs |
- | 1e-09 | 0.001 | 1e-06 |
osqp | eps_rel |
- | 0.0 | 0.0 | 0.0 |
osqp | time_limit |
10.0 | 10.0 | 10.0 | 10.0 |
piqp | check_duality_gap |
- | True | True | True |
piqp | eps_abs |
- | 1e-09 | 0.001 | 1e-06 |
piqp | eps_duality_gap_abs |
- | 1e-09 | 0.001 | 1e-06 |
piqp | eps_duality_gap_rel |
- | 0.0 | 0.0 | 0.0 |
piqp | eps_rel |
- | 0.0 | 0.0 | 0.0 |
proxqp | check_duality_gap |
- | True | True | True |
proxqp | eps_abs |
- | 1e-09 | 0.001 | 1e-06 |
proxqp | eps_duality_gap_abs |
- | 1e-09 | 0.001 | 1e-06 |
proxqp | eps_duality_gap_rel |
- | 0.0 | 0.0 | 0.0 |
proxqp | eps_rel |
- | 0.0 | 0.0 | 0.0 |
qpalm | eps_abs |
- | 1e-09 | 0.001 | 1e-06 |
qpalm | eps_rel |
- | 0.0 | 0.0 | 0.0 |
qpalm | time_limit |
10.0 | 10.0 | 10.0 | 10.0 |
qpoases | predefined_options |
default | reliable | fast | - |
qpoases | time_limit |
10.0 | 10.0 | 10.0 | 10.0 |
qpswift | RELTOL |
- | 1.7320508075688772e-09 | 0.0017320508075688772 | 1.7320508075688771e-06 |
scs | eps_abs |
- | 1e-09 | 0.001 | 1e-06 |
scs | eps_rel |
- | 0.0 | 0.0 | 0.0 |
scs | time_limit_secs |
10.0 | 10.0 | 10.0 | 10.0 |
The following issues have been identified as impacting the fairness of this benchmark. Keep them in mind when drawing conclusions from the results.
Solvers are compared over the whole test set by shifted geometric mean (shm). Lower is better, 1.0 is the best.
Success rate (%) | Runtime (shm) | Primal residual (shm) | Dual residual (shm) | Duality gap (shm) | |
---|---|---|---|---|---|
clarabel | 93.8 | 584.0 | 61293.8 | 201515.4 | 380.0 |
cvxopt | 93.8 | 596.3 | 61293.8 | 201515.4 | 381.1 |
daqp | 93.8 | 583.5 | 61293.8 | 201515.4 | 380.0 |
ecos | 57.8 | 4476.2 | 420907.4 | 1385605.8 | 2733.7 |
gurobi | 93.8 | 586.9 | 61293.8 | 201515.4 | 380.0 |
highs | 98.4 | 159.1 | 15289.2 | 50268.1 | 95.0 |
hpipm | 87.5 | 898.4 | 241690.7 | 302724.2 | 570.8 |
osqp | 96.9 | 289.2 | 31077.4 | 248968.8 | 391.2 |
piqp | 95.3 | 435.8 | 45936.1 | 151024.0 | 284.8 |
proxqp | 100.0 | 4.4 | 1.0 | 1.0 | 1.0 |
qpalm | 100.0 | 1.0 | 37.5 | 305.1 | 28.5 |
qpoases | 93.8 | 586.0 | 61293.8 | 201515.4 | 380.0 |
qpswift | 46.9 | 5864.1 | 532822.5 | 1751759.0 | 3303.1 |
quadprog | 93.8 | 583.3 | 61293.8 | 201515.4 | 380.0 |
scs | 100.0 | 2.3 | 50.7 | 35612.8 | 245.2 |
Solvers are compared over the whole test set by shifted geometric mean (shm). Lower is better, 1.0 is the best.
Success rate (%) | Runtime (shm) | Primal residual (shm) | Dual residual (shm) | Duality gap (shm) | |
---|---|---|---|---|---|
clarabel | 93.8 | 4.0 | 1.4 | 2.6 | 3.6 |
cvxopt | 0.0 | 4.1 | 1.4 | 2.6 | 2707693.0 |
daqp | 93.8 | 4.0 | 1.4 | 2.6 | 1.0 |
ecos | 0.0 | 30.8 | 9.7 | 21205546.7 | 297710104.3 |
gurobi | 40.6 | 4.0 | 1.8 | 292.9 | 1639.1 |
highs | 0.0 | 1.1 | 9.5 | 21228.1 | 583258.6 |
hpipm | 87.5 | 8.2 | 2.9 | 5.2 | 2.8 |
osqp | 89.1 | 3.0 | 2.2 | 8.5 | 4.5 |
piqp | 95.3 | 3.0 | 1.1 | 2.1 | 4.3 |
proxqp | 98.4 | 1.1 | 1.5 | 5.3 | 3.9 |
qpalm | 95.3 | 1.0 | 1.0 | 1.0 | 1.5 |
qpoases | 93.8 | 4.0 | 1.4 | 2.6 | 1.0 |
qpswift | 0.0 | 40.4 | 12.2 | 23.3 | 178.0 |
quadprog | 93.8 | 4.0 | 1.4 | 2.6 | 1.0 |
scs | 98.4 | 1.1 | 1.4 | 1.6 | 1.7 |
Solvers are compared over the whole test set by shifted geometric mean (shm). Lower is better, 1.0 is the best.
Success rate (%) | Runtime (shm) | Primal residual (shm) | Dual residual (shm) | Duality gap (shm) | |
---|---|---|---|---|---|
clarabel | 93.8 | 668.2 | 2513051638.0 | 6289372.3 | 103613.0 |
cvxopt | 90.6 | 673.9 | 2513051638.0 | 6289367.7 | 69617.5 |
daqp | 93.8 | 667.6 | 2874957038.4 | 6289367.7 | 18634.0 |
ecos | 25.0 | 5121.8 | 16963403349.0 | 93748975.1 | 5731607.8 |
gurobi | 93.8 | 670.5 | 2513052299.1 | 6290069.9 | 18664.8 |
highs | 93.8 | 16.5 | 1.0 | 63399.8 | 5919805.3 |
hpipm | 87.5 | 1366.3 | 5026118981.5 | 12578774.8 | 37268.4 |
osqp | 89.1 | 331.0 | 4189270991.4 | 13471287.1 | 113856.3 |
piqp | 100.0 | 5.3 | 1727.9 | 1444302.8 | 73053.7 |
proxqp | 100.0 | 5.0 | 5495333561.4 | 1143644.2 | 84063.2 |
qpalm | 59.4 | 1.0 | 1551238702.9 | 9345361.0 | 1340345.9 |
qpoases | 100.0 | 15.2 | 16.9 | 1.0 | 1.0 |
qpswift | 46.9 | 6709.9 | 21361439551.0 | 53462618.5 | 161777.9 |
quadprog | 93.8 | 667.4 | 2513051638.0 | 6289367.7 | 18634.0 |
scs | 100.0 | 1.5 | 3844235068.0 | 3435850.8 | 48266.4 |
Solvers are compared over the whole test set by shifted geometric mean (shm). Lower is better, 1.0 is the best.
Success rate (%) | Runtime (shm) | Primal residual (shm) | Dual residual (shm) | Duality gap (shm) | |
---|---|---|---|---|---|
clarabel | 93.8 | 514.5 | 3.9 | 3.1 | 4.5 |
cvxopt | 46.9 | 518.5 | 3.9 | 3.1 | 2736.9 |
daqp | 93.8 | 514.0 | 3.9 | 3.1 | 1.0 |
ecos | 4.7 | 3943.2 | 26.6 | 25560.6 | 300816.3 |
gurobi | 90.6 | 516.1 | 3.9 | 3.5 | 2.7 |
highs | 0.0 | 138.8 | 1.0 | 26.5 | 618.1 |
hpipm | 87.5 | 1051.9 | 7.9 | 6.3 | 2.0 |
osqp | 75.0 | 384.2 | 7.3 | 14.2 | 11.5 |
piqp | 96.9 | 255.1 | 2.0 | 1.8 | 3.2 |
proxqp | 98.4 | 130.4 | 3.7 | 2.0 | 3.1 |
qpalm | 98.4 | 1.0 | 1.5 | 1.0 | 2.3 |
qpoases | 93.8 | 516.2 | 3.9 | 3.1 | 1.0 |
qpswift | 0.0 | 5165.9 | 33.5 | 27.5 | 190.2 |
quadprog | 93.8 | 513.8 | 3.9 | 3.1 | 1.0 |
scs | 100.0 | 3.6 | 5.8 | 2.9 | 2.7 |
Precentage of problems each solver is able to solve:
default | high_accuracy | low_accuracy | mid_accuracy | |
---|---|---|---|---|
clarabel | 94 | 94 | 94 | 94 |
cvxopt | 94 | 0 | 91 | 47 |
daqp | 94 | 94 | 94 | 94 |
ecos | 58 | 0 | 25 | 5 |
gurobi | 94 | 41 | 94 | 91 |
highs | 98 | 0 | 94 | 0 |
hpipm | 88 | 88 | 88 | 88 |
osqp | 97 | 89 | 89 | 75 |
piqp | 95 | 95 | 100 | 97 |
proxqp | 100 | 98 | 100 | 98 |
qpalm | 100 | 95 | 59 | 98 |
qpoases | 94 | 94 | 100 | 94 |
qpswift | 47 | 0 | 47 | 0 |
quadprog | 94 | 94 | 94 | 94 |
scs | 100 | 98 | 100 | 100 |
Rows are solvers and columns are settings. We consider that a solver successfully solved a problem when (1) it returned with a success status and (2) its solution satisfies optimality conditions within tolerance. The second table below summarizes the frequency at which solvers return success (1) and the corresponding solution did indeed pass tolerance checks.
Percentage of problems where "solved" return codes are correct:
default | high_accuracy | low_accuracy | mid_accuracy | |
---|---|---|---|---|
clarabel | 100 | 100 | 100 | 100 |
cvxopt | 100 | 6 | 97 | 53 |
daqp | 100 | 100 | 100 | 100 |
ecos | 100 | 42 | 67 | 47 |
gurobi | 100 | 47 | 100 | 97 |
highs | 100 | 2 | 94 | 2 |
hpipm | 97 | 100 | 100 | 100 |
osqp | 100 | 94 | 92 | 80 |
piqp | 100 | 100 | 100 | 100 |
proxqp | 100 | 100 | 100 | 100 |
qpalm | 100 | 97 | 59 | 98 |
qpoases | 100 | 100 | 100 | 100 |
qpswift | 100 | 53 | 100 | 53 |
quadprog | 100 | 100 | 100 | 100 |
scs | 100 | 100 | 100 | 100 |
We compare solver computation times over the whole test set using the shifted geometric mean. Intuitively, a solver with a shifted-geometric-mean runtime of Y is Y times slower than the best solver over the test set. See Metrics for details.
Shifted geometric mean of solver computation times (1.0 is the best):
default | high_accuracy | low_accuracy | mid_accuracy | |
---|---|---|---|---|
clarabel | 584.0 | 4.0 | 668.2 | 514.5 |
cvxopt | 596.3 | 4.1 | 673.9 | 518.5 |
daqp | 583.5 | 4.0 | 667.6 | 514.0 |
ecos | 4476.2 | 30.8 | 5121.8 | 3943.2 |
gurobi | 586.9 | 4.0 | 670.5 | 516.1 |
highs | 159.1 | 1.1 | 16.5 | 138.8 |
hpipm | 898.4 | 8.2 | 1366.3 | 1051.9 |
osqp | 289.2 | 3.0 | 331.0 | 384.2 |
piqp | 435.8 | 3.0 | 5.3 | 255.1 |
proxqp | 4.4 | 1.1 | 5.0 | 130.4 |
qpalm | 1.0 | 1.0 | 1.0 | 1.0 |
qpoases | 586.0 | 4.0 | 15.2 | 516.2 |
qpswift | 5864.1 | 40.4 | 6709.9 | 5165.9 |
quadprog | 583.3 | 4.0 | 667.4 | 513.8 |
scs | 2.3 | 1.1 | 1.5 | 3.6 |
Rows are solvers and columns are solver settings. The shift is
The primal residual measures the maximum (equality and inequality) constraint violation in the solution returned by a solver. We use the shifted geometric mean to compare solver primal residuals over the whole test set. Intuitively, a solver with a shifted-geometric-mean primal residual of Y is Y times less precise on constraints than the best solver over the test set. See Metrics for details.
Shifted geometric means of primal residuals (1.0 is the best):
default | high_accuracy | low_accuracy | mid_accuracy | |
---|---|---|---|---|
clarabel | 61293.8 | 1.4 | 2513051638.0 | 3.9 |
cvxopt | 61293.8 | 1.4 | 2513051638.0 | 3.9 |
daqp | 61293.8 | 1.4 | 2874957038.4 | 3.9 |
ecos | 420907.4 | 9.7 | 16963403349.0 | 26.6 |
gurobi | 61293.8 | 1.8 | 2513052299.1 | 3.9 |
highs | 15289.2 | 9.5 | 1.0 | 1.0 |
hpipm | 241690.7 | 2.9 | 5026118981.5 | 7.9 |
osqp | 31077.4 | 2.2 | 4189270991.4 | 7.3 |
piqp | 45936.1 | 1.1 | 1727.9 | 2.0 |
proxqp | 1.0 | 1.5 | 5495333561.4 | 3.7 |
qpalm | 37.5 | 1.0 | 1551238702.9 | 1.5 |
qpoases | 61293.8 | 1.4 | 16.9 | 3.9 |
qpswift | 532822.5 | 12.2 | 21361439551.0 | 33.5 |
quadprog | 61293.8 | 1.4 | 2513051638.0 | 3.9 |
scs | 50.7 | 1.4 | 3844235068.0 | 5.8 |
Rows are solvers and columns are solver settings. The shift is
The dual residual measures the maximum violation of the dual feasibility condition in the solution returned by a solver. We use the shifted geometric mean to compare solver dual residuals over the whole test set. Intuitively, a solver with a shifted-geometric-mean dual residual of Y is Y times less precise on the dual feasibility condition than the best solver over the test set. See Metrics for details.
Shifted geometric means of dual residuals (1.0 is the best):
default | high_accuracy | low_accuracy | mid_accuracy | |
---|---|---|---|---|
clarabel | 201515.4 | 2.6 | 6289372.3 | 3.1 |
cvxopt | 201515.4 | 2.6 | 6289367.7 | 3.1 |
daqp | 201515.4 | 2.6 | 6289367.7 | 3.1 |
ecos | 1385605.8 | 21205546.7 | 93748975.1 | 25560.6 |
gurobi | 201515.4 | 292.9 | 6290069.9 | 3.5 |
highs | 50268.1 | 21228.1 | 63399.8 | 26.5 |
hpipm | 302724.2 | 5.2 | 12578774.8 | 6.3 |
osqp | 248968.8 | 8.5 | 13471287.1 | 14.2 |
piqp | 151024.0 | 2.1 | 1444302.8 | 1.8 |
proxqp | 1.0 | 5.3 | 1143644.2 | 2.0 |
qpalm | 305.1 | 1.0 | 9345361.0 | 1.0 |
qpoases | 201515.4 | 2.6 | 1.0 | 3.1 |
qpswift | 1751759.0 | 23.3 | 53462618.5 | 27.5 |
quadprog | 201515.4 | 2.6 | 6289367.7 | 3.1 |
scs | 35612.8 | 1.6 | 3435850.8 | 2.9 |
Rows are solvers and columns are solver settings. The shift is
The duality gap measures the consistency of the primal and dual solutions returned by a solver. A duality gap close to zero ensures that the complementarity slackness optimality condition is satisfied. We use the shifted geometric mean to compare solver duality gaps over the whole test set. Intuitively, a solver with a shifted-geometric-mean duality gap of Y is Y times less precise on the complementarity slackness condition than the best solver over the test set. See Metrics for details.
Shifted geometric means of duality gaps (1.0 is the best):
default | high_accuracy | low_accuracy | mid_accuracy | |
---|---|---|---|---|
clarabel | 380.0 | 3.6 | 103613.0 | 4.5 |
cvxopt | 381.1 | 2707693.0 | 69617.5 | 2736.9 |
daqp | 380.0 | 1.0 | 18634.0 | 1.0 |
ecos | 2733.7 | 297710104.3 | 5731607.8 | 300816.3 |
gurobi | 380.0 | 1639.1 | 18664.8 | 2.7 |
highs | 95.0 | 583258.6 | 5919805.3 | 618.1 |
hpipm | 570.8 | 2.8 | 37268.4 | 2.0 |
osqp | 391.2 | 4.5 | 113856.3 | 11.5 |
piqp | 284.8 | 4.3 | 73053.7 | 3.2 |
proxqp | 1.0 | 3.9 | 84063.2 | 3.1 |
qpalm | 28.5 | 1.5 | 1340345.9 | 2.3 |
qpoases | 380.0 | 1.0 | 1.0 | 1.0 |
qpswift | 3303.1 | 178.0 | 161777.9 | 190.2 |
quadprog | 380.0 | 1.0 | 18634.0 | 1.0 |
scs | 245.2 | 1.7 | 48266.4 | 2.7 |
Rows are solvers and columns are solver settings. The shift is