Benchmark results: 1,036 CUTEst problems
Version 0.14.0, 17 October 2026. This is the first run of the harness planned
in benchmark-harness-plan.md (gap 6 in
gaps.md). Every number below comes from
benchmarks/tables.md, generated by
python -m bench.report from the raw results in
benchmarks/results.jsonl.gz. The recommendations are marked as such; the
defaults were not changed in that campaign. The
automatic backend policy of 0.19.0 applies its recommendation
to dense solves while preserving Clarabel for structured curvature. All numbers
in this report remain historical.
These results were measured with 0.14. The review of 0.16 (performance-60/REVIEW.md) reran Clarabel, the active-set backend and elastic mode on the same problems:
- Clarabel and elastic mode give identical runs, apart from runs near the time limit.
- The active-set backend changes on unconstrained problems, through the 0.15 direct QP path, and solves 801 problems instead of 799.
Summary
- No false claim. The 11 sqp-craft configurations and the experiment made no false convergence claim in 12,432 runs. The comparators’ claims failed the same check 154 times (SLSQP), 80 times (Uno, IPOPT preset), 4 times (Uno, filterSQP preset with exact Hessians) and once (Uno, filterSQP preset).
- The active-set backend beats the default. Clarabel solves 754
problems and the active-set backend 799. The active-set backend solves 54
that Clarabel does not; 47 of those end in
qp_failurewith Clarabel. Clarabel solves 9 that the active-set backend does not. The active-set backend is also 2% cheaper in callbacks and 4.5% in time. - Elastic mode is the only solver option that pays on its own. It adds 14 problems net to the active-set backend (813) at 0.6% more callbacks. Declaring the linear rows, which is input rather than an option, adds 10 (809).
- The other options do not pay on CUTEst. The second-order correction, the augmented-Lagrangian merit, the curvature repair and Jacobian scaling each solve 2–6 fewer problems than the plain active-set backend, at equal or higher cost.
- The active-set backend is ahead of every quasi-Newton comparator
here.
- Uno with the filterSQP preset and L-BFGS solves 760; the active-set backend solves 84 problems Uno does not, and Uno 45 it does not.
- On problems both solve, the active-set backend needs 7% fewer callbacks and 14% less time.
- SLSQP solves 631 and Uno with the IPOPT preset 713.
- The current default, Clarabel, trails Uno’s filterSQP slightly (754 against 760).
- Second derivatives are the largest lever. Uno’s filterSQP with exact Hessians solves 845 problems against 760 with L-BFGS. It needs 54% fewer callbacks, and 70% fewer than sqp-craft on the control problems.
- The failures point to three cheap fixes and one large item:
- The first step: on 34 problems the first line search fails. On 32 of them ‖∇f(x₀)‖∞ is 10⁴ or more, up to 2·10²⁷, and the BFGS start B₀ = I gives a step too long for 25 halvings. A crude emulation of a first-step rule recovers 16 problems net.
- Nonfinite values: 20 runs on 6 problems end in an exception instead of a status.
- Infeasible problems: 93 of the 131 problems no solver solves are
probably infeasible from their start. The active-set backend ends 81
of them in
restoration_limitorrestoration_failed, and elastic mode ends 47locally_infeasible; neither comes with a certificate. - Exact Hessians (gap 2) are the large item.
What was run
Problems. S2MPJ at commit fea6a70 has 1,104 problems. 1,036 pass the
rules of the plan. The 68 excluded are:
- 21 that cannot be set up and evaluated at the start: 18 take over 60 s, and 3 fail to load;
- 19 with m > 512 and 11 with n > 256;
- 9 non-smooth problems;
- 8 whose evaluation takes over 0.2 s.
The selection holds 234 unconstrained, 155 bound-constrained, 148 linearly constrained and 499 nonlinearly constrained problems, 35 of them control-like. The problems are small at their default sizes: the median has n = 8, and 127 problems have n ≥ 50. 105 starts lie outside the bounds and were clipped into them, for every solver alike.
Solvers.
- Eleven sqp-craft configurations: the defaults (Clarabel); the active-set backend alone and with each option; a combination of the SNOPT-like options; and the augmented-Lagrangian merit with Clarabel.
- Four comparators:
- SciPy SLSQP;
- Uno 2.9.1 with the filterSQP preset (L-BFGS, trust region, filter, BQPD);
- Uno with the IPOPT preset (L-BFGS, interior point, MUMPS);
- Uno’s filterSQP preset with exact Hessians from S2MPJ.
- One experiment (below).
Budgets were 500 iterations and 60 s for every solve, and 5,000 callbacks
for sqp-craft. The runs record two sqp-craft commits, 4d776bb (main) and
8eddb8b (the harness’s first commit). Their solver code is identical; the
second adds only bench/ and its tests. The main run took about 3 hours 20 minutes on two cores of an
Intel Xeon at 2.1 GHz, two solves at a time.
The check. A run is solved when the independent first-order check passes at its point:
- primal violation ≤ 10⁻⁶;
- stationarity, complementarity and sign residuals ≤ 10⁻⁶·max(1, ‖∇f‖∞).
The check uses the solver’s multipliers, or least-squares multipliers. sqp-craft’s own test is the same absolute 10⁻⁶. The main comparisons do not hinge on that. With every threshold of the check 100 times looser, the active-set backend (815), Uno’s filterSQP with L-BFGS (788) and with exact Hessians (862) keep their order. Uno’s IPOPT preset gains most (713 → 784) and then passes Clarabel (767). See the sensitivity table.
Headline numbers
| solver | solved | best objective | unconstr. | bounds | linear | nonlinear | control |
|---|---|---|---|---|---|---|---|
| clarabel (default) | 754 | 675 | 173 | 127 | 134 | 320 | 32 |
| active-set | 799 | 710 | 177 | 143 | 139 | 340 | 33 |
| active-set + elastic | 813 | 725 | 177 | 143 | 138 | 355 | 33 |
| active-set + SNOPT-like options | 812 | 732 | 179 | 141 | 139 | 353 | 33 |
| SLSQP | 631 | 560 | 122 | 90 | 114 | 305 | 27 |
| Uno filterSQP, L-BFGS | 760 | 687 | 156 | 120 | 132 | 352 | 31 |
| Uno IPOPT, L-BFGS | 713 | 652 | 145 | 117 | 128 | 323 | 29 |
| Uno filterSQP, exact Hessians | 845 | 775 | 200 | 149 | 142 | 354 | 31 |
Best objective counts the solved runs whose objective is within 10⁻⁶·max(1, |f*|) of the best objective f* of any solved run. Some sqp-craft configuration solves 850 problems and some comparator solves 892; together 905, and 131 problems are solved by none.
The decisions
Each decision compares the current choice A with one alternative B on the same problems. The columns are:
- only A, only B: problems solved by one side only;
- B wins/losses: among the problems both solve, those where B needs fewer or more callbacks;
- callbacks: shifted geometric mean (shift 10) over the problems both solve.
| decision | A → B | only A | only B | B wins/losses | callbacks |
|---|---|---|---|---|---|
| Q1 backend | clarabel → active-set | 9 | 54 | 77/58 | 42.9 → 42.0 |
| Q2 second-order correction | active-set → +soc | 3 | 0 | 17/111 | 46.0 → 46.1 |
| Q2 augmented-Lagrangian merit | active-set → +al | 12 | 6 | 79/81 | 45.5 → 45.6 |
| Q2 the same with Clarabel | clarabel → +al | 17 | 9 | 74/78 | 42.9 → 43.0 |
| Q3 curvature repair | active-set → +augmented | 3 | 1 | 38/61 | 45.9 → 46.2 |
| Q4 Jacobian scaling | active-set → +scale-jacobian | 11 | 8 | 97/150 | 45.5 → 48.5 |
| Q4 linear scaling | +linear → +linear+scale-linear | 0 | 0 | 34/55 | 45.0 → 45.8 |
| Q5 linear rows declared | active-set → +linear | 4 | 14 | 37/67 | 46.1 → 46.1 |
| Q6 elastic mode | active-set → +elastic | 8 | 22 | 16/20 | 45.5 → 45.8 |
| SNOPT-like combination | active-set → +snopt | 20 | 33 | 133/185 | 45.3 → 46.2 |
Q1: the QP backend
The active-set backend solves 45 more problems net (54 against 9).
- Why: 47 of the 54 end with Clarabel in
qp_failure. Clarabel ends 120 runs inqp_failure, against 24 for the active-set backend. Its interior-point QPs fail on degenerate and nearly infeasible subproblems, as on the complementarity family (gap 6). - Cost: on the 745 problems both solve, the active-set backend needs 2% fewer callbacks (42.9 → 42.0) and 4.5% less time (0.275 → 0.263 s, shifted geometric means). 610 of the 745 take the same number of callbacks.
- Clarabel’s 9: the active-set backend ends 3 of them in
line_search_failureand 2 inqp_failure.
Recommendation: make qp_solver="active-set" the default.
Q2: the merit function
- Second-order correction: it loses 3 problems and wins none. It is more expensive on 111 problems and cheaper on 17. CUTEst’s curved constraints rarely cause the Maratos effect it targets, and the corrected steps cost a function evaluation each.
- Augmented-Lagrangian merit:
- with the active-set backend, 6 more problems and 12 fewer; costs equal;
- with Clarabel, 9 more and 17 fewer;
- on 3 problems (BRATU2DT, LUKVLE1, SEMICN2U) its trial-point merit overflows and the solve ends in an exception, a bug.
Recommendation: keep the ℓ1 merit, with the second-order correction off. The smooth merit’s gains on the stress families (snopt-lessons.md) do not carry over to CUTEst.
Q3: the curvature repair
hessian_update="augmented" solves 1 problem the damped update does not,
and loses 3. It costs 0.8% more callbacks.
Recommendation: keep damping.
Q4: scaling
- Jacobian scaling: 8 more problems and 11 fewer, and 6.5% more callbacks, the largest cost of any option. CUTEst problems come in units their authors chose; the badly scaled orbit copies that Jacobian scaling rescued are not represented here.
- Linear scaling on top of declared linear rows changes no outcome and costs 1.8% more callbacks.
Recommendation: keep scaling off, and revisit with the target application’s units.
Q5: declared linear rows
Declaring S2MPJ’s linear rows solves 14 more problems and 4 fewer, at the same callbacks. It needs the user to know the rows, so it is input, not a default.
- The 14: mostly nonlinear-equation problems with linear rows (LEVYMONE*, EGGCRATENE, EXTROSNBNE, BROWNBSNE), where restoration or the QP otherwise fails.
- The 4:
- RECIPE’s model is undefined at the projected start point, so the solve aborts as documented;
- AVION2 ends in
line_search_failure, FLETCHER and JANNSON3 inrestoration_failed.
Recommendation: document that applications should declare their linear
rows. The harness does so in its +linear configurations.
Q6: elastic mode
Elastic mode solves 22 problems the active-set backend does not (12 of them
end in restoration_limit without it) and loses 8. It costs 0.6% more
callbacks. It also changes how failures end:
- Of the active-set backend’s 119 unsolved runs that end in restoration,
elastic mode solves 13 and ends 51 as
locally_infeasible. - In all, 60 unsolved runs end
locally_infeasible. That verdict is local: on 11 of those problems another sqp-craft configuration finds a KKT point, and on 4 a comparator does.
Recommendation: make elastic_mode=True the default with the active-set
backend. Together with Q1, that is 813 solved against 754 today.
The SNOPT-like combination
It combines the augmented-Lagrangian merit, the curvature repair, declared linear rows with linear scaling, elastic mode and a violation limit of 10.
- It solves 812 problems, 13 more net than the active-set backend (33 against 20).
- It reaches the best objective most often of the sqp-craft configurations (732).
- It costs 2% more callbacks.
Its gains come from elastic mode and the linear rows. Its losses follow its parts: elastic mode alone also loses ALLINITA and ALLINITC, and the merit alone ARTIF, ORTHREGD and ORTHRGDM.
Q7: where sqp-craft stands
On the same problems, from the same starts, judged by the same check:
| pair | only first | only second | callbacks, both solve | time (s), both solve |
|---|---|---|---|---|
| active-set vs Uno filterSQP (L-BFGS) | 84 | 45 | 38.5 vs 41.4 | 0.218 vs 0.255 |
| active-set vs Uno IPOPT (L-BFGS) | 120 | 34 | 36.6 vs 54.9 | 0.191 vs 0.280 |
| active-set vs SLSQP | 190 | 22 | 35.2 vs 40.4 | 0.199 vs 0.297 |
| clarabel vs Uno filterSQP (L-BFGS) | 69 | 75 | 37.6 vs 40.1 | 0.217 vs 0.244 |
- The quasi-Newton comparators: sqp-craft’s dense BFGS with an active-set QP is more robust than Uno’s filterSQP with L-BFGS on these small problems, and cheaper. Uno’s run ends 139 times at the iteration limit, which suggests that L-BFGS curvature is the weaker part there, not the filter.
- Control-like problems (35):
- every active-set configuration solves 33, except the one with Jacobian scaling (32);
- Clarabel 32, Uno filterSQP 31 (both Hessian options), Uno IPOPT 29 and SLSQP 27;
- on the 31 that both the active-set backend and Uno filterSQP with L-BFGS solve, sqp-craft needs more callbacks (39.9 against 33.2) and less time (0.32 against 0.35 s).
- SLSQP: 154 of its successes fail the check. It stops on a small change in f, not on first-order conditions. It also crashed the process 16 times with heap corruption, a SciPy 1.18.1 defect: all 16 are nonlinear-equation problems with many more equality rows than variables.
- Uno with the IPOPT preset: 80 of its claims fail the check. 50 of them pass with thresholds 100 times looser: IPOPT scales its dual test.
Q8: what second derivatives would buy
Uno’s filterSQP preset with exact Hessians, against the same preset with L-BFGS:
- Solved: 845 against 760. Exact Hessians solve 109 problems L-BFGS does not, and L-BFGS solves 24 they do not.
- By subset: the gain is in the unconstrained (200 against 156) and bound-constrained (149 against 120) problems. With nonlinear constraints it is small (354 against 352).
- Cost: callbacks fall by 54% (42.5 → 19.5) on the problems both solve. On the control problems that sqp-craft and the exact-Hessian run both solve, the exact run needs 11.6 callbacks against sqp-craft’s 38.8.
- Iteration limits: of sqp-craft’s 27 problems that end at the iteration limit, exact Hessians solve 13.
For the trajectory application, where each callback is a propagation, exact or better second-order information (gap 2) is worth about a factor of two in callbacks overall, and about three on the control problems. It is not needed for robustness on constrained problems.
Q9: what fails, and why
The active-set backend leaves 237 problems unsolved; elastic mode leaves 223.
| class | active-set | elastic | a comparator solves (active-set) | what it is |
|---|---|---|---|---|
| restoration limit or failure | 119 | – | 20 | mostly infeasible starts: 97 on problems where some solver reports infeasibility |
locally_infeasible | – | 60 | – | elastic mode’s verdict on most of the same problems |
line_search_failure | 56 | 55 | 38 | 34 at iteration 0, 32 of them with ‖∇f(x₀)‖∞ ≥ 10⁴: the first step |
iteration_limit | 27 | 29 | 15 | slow BFGS convergence; exact Hessians solve 13 |
qp_failure | 24 | 36 | 15 | degenerate or inconsistent QPs |
numerical_failure, stalled, others | 10 | 42 | – | |
an exception (error) | 1 | 1 | 0 | HS25NE: the active-set QP returns a NaN step |
The problems no solver solves. 131 problems are solved by none of the 15
configurations. On 93 of them some solver reports a stationary point of the
infeasibility, so they are probably infeasible from their start. Many are
systems of equations without an exact solution: 90 of the 131 have at least
as many rows as variables, and 49 are the …NE versions of data-fitting
problems.
The first step. sqp-craft starts BFGS from B₀ = I. When ‖∇f(x₀)‖∞ is 10⁴ or more, as in the NIST data-fitting problems (CHWIRUT*, GAUSS*, MISRA*, THURBER, …), the first step is as long as the gradient, and 25 halvings cannot shorten it enough. The first line search fails on 34 problems, 30 unconstrained and 4 constrained; on 32 of them the gradient is between 10⁴ and 2·10²⁷. Two (BYRDSPHR, OSCIGRNE) fail with a small gradient, for another reason. On 25 of them some comparator succeeds, most often Uno with exact Hessians (22).
Exceptions instead of statuses. 20 runs of the 11 configurations, on 6 problems, end in an error:
- HS25NE: the active-set QP returns a NaN step, in all nine active-set configurations;
- the augmented-Lagrangian merit overflows at a trial point (BRATU2DT, LUKVLE1, SEMICN2U);
- the complementarity or merit residual overflows (LUKVLE6 and SEMICN2U, with the correction or Jacobian scaling);
- RECIPE’s model is undefined at the projected start.
None is a false claim, but each should end with a status, as a trial point where the model is undefined does.
Experiment: a first step of at most unit length
The harness emulates a first-step rule without changing the solver. It
starts BFGS from max(1, ‖∇f(x₀)‖∞)·I (active-set+b0-gradient in
bench/solvers.py), so the first step is at most of unit length. Resets use
the same matrix, which is cruder than any rule sqp-craft would adopt.
| only active-set | only experiment | B wins/losses | callbacks | iterations | |
|---|---|---|---|---|---|
| active-set → b0-gradient | 16 | 32 | 221/250 | 44.1 → 45.7 | 18.3 → 21.3 |
- Solved: 815 against 799, and the best objective on 737 problems, the most of any sqp-craft run.
- The 34 iteration-0 failures: it recovers 12. Of the rest, it ends 9 in
qp_failureand 5stalled: tiny steps from a huge B₀. - Cost: it slows the many well-scaled problems whose gradient is moderately above 1 (16% more iterations). Of its 16 losses, 6 end at the iteration limit.
Recommendation: implement a targeted rule in Rust and measure it with the harness. Candidates are a limit on the first trial step, such as SNOPT’s major step limit, or a rescaling of B₀ after the first step (Shanno–Phua: B₀ ← (yᵀy/sᵀy)·I). Either should keep the gains without the cost on well-scaled problems.
Order of the next work, from these results
- Defaults (your decision): active-set backend with elastic mode, 813 against 754 solved, at slightly lower cost.
- A first-step safeguard: up to 34 problems, 25 of them solved by a comparator. It is cheap, and the harness measures it.
- Statuses instead of exceptions for nonfinite QP steps, merits and residuals: 6 problems, and robustness for applications.
- Infeasibility: 93 of 131 unsolved problems are probably infeasible.
An infeasibility certificate would make
locally_infeasiblecheckable, and the harness’s check could verify it. This is the priority-list item “infeasibility (steering plus certificate)”. - Second-order information (gap 2): the largest saving in callbacks, a factor of 2–3, and 13 of the 27 iteration limits.
- QP failures of the active-set backend: 24 problems, 15 of them solved by a comparator.
The watchdog stays low: the second-order correction, its closest relative, does not pay here.
Findings about the harness and the comparators
- S2MPJ’s linear rows. S2MPJ marks a row linear (
lincons) when its group has no nonlinear elements, even under a nonlinear group function. ALSOTAME’s row is sin(x − y), for example. The adapter drops such rows, checking the group function and the Jacobian at three points; 7 problems are affected. sqp-craft itself caught the error: its check that declared rows keep a constant Jacobian ended those solves with an error, not with a wrong result. - The selection is frozen. One evaluation of the slowest problems varies
by up to ±50% between catalog runs. The 0.2 s rule therefore admitted
BAmL1SP and BAmL1SPLS in one run and not in the other.
bench.selectionkeeps the problems of the first run (--frozen) and re-derives only their attributes. - unopy 0.4.15 passes a null pointer for an empty multiplier vector to the Hessian callback of an unconstrained problem. The harness adds one free row with a zero Jacobian entry, which leaves the problem unchanged. Uno’s IPOPT preset crashed twice (ECKERLE4, MUONSINE).
- SciPy 1.18.1 SLSQP corrupts the heap on problems with more equality
rows than variables, 16 crashes in all. The workers contain such crashes;
each is recorded as
crash.
Limits
- Small problems. The CUTEst default sizes are small: the median n is 8, and only 35 problems have n ≥ 100. The cost of dense linear algebra at n = 256, where the orbit transfer lives, is not measured here.
- Python callbacks. S2MPJ evaluates in Python. Wall times include callback time for every solver alike, so they are comparable between solvers, but not with published Fortran CUTEst timings.
- One start per problem, the S2MPJ start clipped into the bounds.
- No Ipopt or SNOPT binaries. Uno’s presets reproduce their methods, not their implementations.
- Comparator claims. Uno’s and SLSQP’s claims are judged by sqp-craft’s check. Their own tests differ, so their rejected claims are not errors of those solvers.
Reproduce
python -m pip install ".[bench]" unopy # Uno is optional
python -m bench.s2mpj fetch # S2MPJ at the pinned commit
python -m bench.catalog catalog.json # ~13 min on two cores
python -m bench.selection catalog.json selection.json \
--frozen docs/benchmarks/selection.json
python -m bench.run selection.json results.jsonl --jobs 2 # ~3.5 h; resumable
python -m bench.run selection.json results.jsonl --solvers active-set+b0-gradient
python -m bench.report selection.json results.jsonl tables.md
bench.report exits with status 1 when a sqp-craft configuration makes a
false claim. The CI job runs 20 Hock–Schittkowski problems the same way.
16 November 2026: numerical failures and first-step safeguards
A fresh 0.19.0 baseline and 0.20.0 with its defaults each accepted 814 of the 1,036 selected problems. The proposed delta-2 limit plus fresh-curvature scaling accepted 824, gaining 23 and losing 13; the bound-constrained subset lost one net problem. That fails the predeclared no-subset-loss gate, so both controls remain disabled by default. No configuration made a false convergence claim. See complete first-step records, acceptance gates and rejected variants.
All 3,000 default stress records match the baseline after removing timings, the backend version and newly added zero diagnostics. The enabled proposed safeguard adds no failed convergence in that stress panel. The six-problem exception panel returns statuses; original callback errors retain their error contract. The stricter error/status and projected-start behavior is tested independently of S2MPJ.