Skip to content

Soft restoration phase of the line search (ipopt preset) - #1097

Merged
cvanaret merged 3 commits into
mainfrom
soft_restoration
Nov 26, 2026
Merged

cvanaret merged 3 commits into
mainfrom
soft_restoration

Conversation

@cvanaret

@cvanaret cvanaret commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

When the line search fails in the optimality phase of an interior-point method, Uno now tries IPOPT's soft restoration phase (TrySoftRestoStep) before entering the feasibility restoration phase.

  • A step of maximal length (fraction-to-boundary rule) is accepted if:
    • the filter accepts it (h-type test), which ends the phase;
    • or it reduces the primal-dual error of the barrier problem: $E_\mu(x^+) \le \kappa_{\text{soft}} E_\mu(x)$.
  • Otherwise, or after LS_soft_restoration_max_iterations iterations, the restoration phase is entered without a line search.
  • The phase is left when the barrier parameter changes.
  • Filter handling follows IPOPT: the starting iterate is added to the filter, and the restoration exit test checks acceptability compared with it.
  • Uno restriction: the phase only exists in the optimality phase.
  • Options: LS_soft_restoration (default false, true in the ipopt preset), LS_soft_restoration_error_reduction_factor (default 0.9999, 0 disables) and LS_soft_restoration_max_iterations (default 10).

@cvanaret cvanaret self-assigned this Nov 25, 2026
Repository owner deleted a comment from github-actions Bot Nov 26, 2026
Repository owner deleted a comment from github-actions Bot Nov 26, 2026
Repository owner deleted a comment from github-actions Bot Nov 26, 2026
@github-actions

Copy link
Copy Markdown

CUTE benchmark (preset ipopt, MA57) — before/after

Before: PR #1100 · commit 746b937 · run
After: PR #1097 · commit cffb697 · run · preset ipopt · linear solver MA57 · time_limit=60s · all (429 instances)

Performance profile (objective evaluations)

before after after/before
solved (429 common instances) 425 425 (+0) —
shifted geo. mean objective evaluations, solved by both (425) 26.98 27.11 1.00×
shifted geo. mean solve time, solved by both (425) 0.006s 0.006s 1.09×

Performance profile: ratio of the objective evaluations to the fewest of both runs, a failure counting as ∞. Shifts: 10 evaluations, 1s.

No change in solved/failed status.

Objective evaluations changed on 12 of the 425 instances solved by both: fewer on 1, more on 11.

Against IPOPT 3.14.20 (MA57 3.10.0)

Performance profile against IPOPT 3.14.20 (MA57 3.10.0) (objective evaluations)

before after IPOPT 3.14.20 (MA57 3.10.0)
solved (429 common instances) 425 425 410
shifted geo. mean objective evaluations, solved by the 3 (409) 23.78 23.81 23.18

IPOPT 3.14.20 (MA57 3.10.0): reference results from nonlinear_optimization_solver_benchmark, obtained with its own tolerances and limits (times not comparable).

Instances whose status or objective evaluations changed (12 of 429)
instance before after after/before
core1 ✅ 81 ✅ 82 1.01×
cresc4 ✅ 108 ✅ 115 1.06×
discs ✅ 243 ✅ 248 1.02×
himmelp5 ✅ 136 ✅ 137 1.01×
hs013 ✅ 76 ✅ 77 1.01×
hs085 ✅ 109 ✅ 113 1.04×
hs114 ✅ 34 ✅ 36 1.06×
launch ✅ 213 ✅ 217 1.02×
lewispol ✅ 49 ✅ 50 1.02×
📈 polak3 ✅ 1703 ✅ 4808 2.82×
📈 polak6 ✅ 631 ✅ 844 1.34×
vanderm4 ✅ 324 ✅ 313 0.97×

🟢 newly solved · 🔴 newly failed · 📉/📈 at least 1.25× fewer/more objective evaluations (both solved); unflagged rows changed by less

@github-actions

Copy link
Copy Markdown

Mittelmann benchmark — before/after (time_limit=1200s)

Before: PR #1100 · commit 746b937 · run
After: PR #1097 · commit cffb697 · run

before after after/before
solved (47 common instances) 47 47 +0
shifted geo. mean time, all common instances¹ 21.73s 21.90s 1.01×
shifted geo. mean time, solved by both (47) 21.73s 21.90s 1.01×
shifted geo. mean model read time (47) 0.78s 0.79s 1.01×
shifted geo. mean solve time, solved by both (47) 21.26s 21.42s 1.01×

¹ shift of 10s; failures counted at the time limit.

No change in solved/failed status.

Per-instance results (47 instances)
instance model read before solve before model read after solve after model read after/before solve after/before
arki0003 0.01s ✅ 0.95s 0.01s ✅ 0.94s 1.00× 0.99×
arki0009 0.01s ✅ 4.65s 0.01s ✅ 4.67s 1.00× 1.00×
bearing_400 0.89s ✅ 4.80s 0.90s ✅ 4.80s 1.01× 1.00×
camshape_6400 0.03s ✅ 1.07s 0.04s ✅ 1.06s 1.33× 0.99×
clnlbeam 0.11s ✅ 21.72s 0.12s ✅ 21.69s 1.09× 1.00×
cont5_1_l 0.14s ✅ 11.26s 0.15s ✅ 11.31s 1.07× 1.00×
cont5_2_1_l 0.15s ✅ 27.68s 0.16s ✅ 27.71s 1.07× 1.00×
cont5_2_2_l 0.15s ✅ 35.14s 0.16s ✅ 35.11s 1.07× 1.00×
cont5_2_3_l 0.15s ✅ 47.24s 0.16s ✅ 47.26s 1.07× 1.00×
cont5_2_4_l 0.30s ✅ 27.87s 0.31s ✅ 27.98s 1.03× 1.00×
🐢 corkscrw 0.05s ✅ 2.87s 0.05s ✅ 3.61s 1.00× 1.26×
dirichlet120 1.76s ✅ 90.98s 1.80s ✅ 91.26s 1.02× 1.00×
dtoc1nd 0.85s ✅ 2.29s 0.84s ✅ 2.31s 0.99× 1.01×
dtoc2 0.57s ✅ 2.59s 0.58s ✅ 2.59s 1.02× 1.00×
elec_400 0.29s ✅ 65.31s 0.29s ✅ 65.30s 1.00× 1.00×
ex1_160 0.08s ✅ 1.29s 0.08s ✅ 1.29s 1.00× 1.00×
ex1_320 0.33s ✅ 8.56s 0.34s ✅ 8.64s 1.03× 1.01×
ex4_2_160 0.08s ✅ 1.70s 0.09s ✅ 1.69s 1.12× 0.99×
ex4_2_320 0.36s ✅ 7.71s 0.37s ✅ 7.63s 1.03× 0.99×
ex8_2_2 0.01s ✅ 0.27s 0.02s ✅ 0.27s 2.00× 1.00×
ex8_2_3 0.02s ✅ 0.75s 0.03s ✅ 0.74s 1.50× 0.99×
gasoil_3200 0.12s ✅ 1.53s 0.12s ✅ 1.53s 1.00× 1.00×
henon120 0.88s ✅ 116.46s 0.89s ✅ 116.39s 1.01× 1.00×
lane_emden120 1.30s ✅ 107.17s 1.30s ✅ 106.99s 1.00× 1.00×
marine_1600 0.11s ✅ 1.56s 0.12s ✅ 1.53s 1.09× 0.98×
NARX_CFy 0.12s ✅ 76.28s 0.12s ✅ 76.18s 1.00× 1.00×
nql180 0.20s ✅ 10.71s 0.21s ✅ 10.74s 1.05× 1.00×
optmass 0.06s ✅ 1.34s 0.06s ✅ 1.33s 1.00× 0.99×
pinene_3200 0.19s ✅ 2.05s 0.20s ✅ 2.04s 1.05× 1.00×
qcqp1000-1nc 0.22s ✅ 21.53s 0.23s ✅ 21.55s 1.05× 1.00×
qcqp1000-2c 0.47s ✅ 24.38s 0.48s ✅ 24.40s 1.02× 1.00×
qcqp1000-2nc 0.42s ✅ 21.31s 0.42s ✅ 21.30s 1.00× 1.00×
qcqp1500-1c 1.79s ✅ 92.94s 1.79s ✅ 93.85s 1.00× 1.01×
qcqp1500-1nc 1.61s ✅ 84.03s 1.61s ✅ 84.66s 1.00× 1.01×
qcqp500-3c 2.76s ✅ 578.77s 2.78s ✅ 578.15s 1.01× 1.00×
qcqp500-3nc 2.77s ✅ 81.78s 2.80s ✅ 82.63s 1.01× 1.01×
qcqp750-2c 9.10s ✅ 261.40s 9.14s ✅ 294.74s 1.00× 1.13×
qcqp750-2nc 9.03s ✅ 419.22s 9.07s ✅ 420.73s 1.00× 1.00×
qssp180 0.34s ✅ 10.17s 0.39s ✅ 10.42s 1.15× 1.02×
robot_1600 0.03s ✅ 0.68s 0.03s ✅ 0.68s 1.00× 1.00×
robot_a 0.18s ✅ 7.24s 0.18s ✅ 7.44s 1.00× 1.03×
robot_b 0.18s ✅ 17.47s 0.18s ✅ 17.76s 1.00× 1.02×
robot_c 0.18s ✅ 8.41s 0.18s ✅ 8.43s 1.00× 1.00×
rocket_12800 0.18s ✅ 2.86s 0.18s ✅ 2.85s 1.00× 1.00×
steering_12800 0.11s ✅ 2.48s 0.12s ✅ 2.46s 1.09× 0.99×
svanberg 0.29s ✅ 5.20s 0.30s ✅ 5.26s 1.03× 1.01×
WM_CFy 3.38s ✅ 839.70s 3.42s ✅ 841.35s 1.01× 1.00×

🟢 newly solved · 🔴 newly failed · ⚡/🐢 at least 1.25× faster/slower (both solved, ≥ 1s, on the wall time of the run)
model read and solve: from uno_ampl's log · * no breakdown (no optimization summary, or older results): wall time of the run

@github-actions

Copy link
Copy Markdown

CUTEst benchmark (preset ipopt, linear solver MA57) — before/after (time_limit=300s)

Before: PR #1100 · commit 746b937 · run
After: PR #1097 · commit cffb697 · run

before after after/before
solved (1565 common instances) 1451 1453 +2
shifted geo. mean time, all common instances¹ 4.63s 4.59s 0.99×
shifted geo. mean time, solved by both (1449) 1.42s 1.44s 1.01×

¹ shift of 10s; failures counted at the time limit.

🟢 Newly solved (4): BRAINPC7, DMN15333LS, SAROMM, STEENBRD

🔴 Newly failed (2): BRAINPC8, COSHFUN

Instances whose status or time changed (22 of 1565)
instance before after after/before
⚡ A2NNDNSL ✅ 26.93s ✅ 7.97s 0.30×
🐢 BOYD2 ✅ 175.47s ✅ 221.37s 1.26×
🐢 BRAINPC1 ✅ 4.70s ✅ 6.69s 1.42×
🐢 BRAINPC4 ✅ 11.27s ✅ 14.92s 1.32×
🟢 BRAINPC7 ❌ 63.43s ✅ 2.69s —
🔴 BRAINPC8 ✅ 23.25s ❌ 77.93s —
🐢 BRAINPC9 ✅ 1.13s ✅ 1.48s 1.31×
🐢 BRATU2DT ✅ 0.89s ✅ 1.79s 2.01×
🐢 BROYDN7D ✅ 0.49s ✅ 1.06s 2.16×
🐢 CHANDHEU ✅ 1.19s ✅ 1.51s 1.27×
🐢 CHEBYQAD ✅ 1.66s ✅ 2.31s 1.39×
🐢 CHEBYQADNE ✅ 0.88s ✅ 1.18s 1.34×
🐢 CLEUVEN3 ✅ 21.06s ✅ 26.83s 1.27×
🔴 COSHFUN ✅ 266.00s ❌ 307.11s —
🐢 CRESC132 ✅ 2.45s ✅ 3.75s 1.53×
🐢 DIXCHLNV ✅ 1.61s ✅ 2.18s 1.35×
🟢 DMN15333LS ❌ 300.05s ✅ 297.39s —
🟢 SAROMM ❌ 161.84s ✅ 36.19s —
🐢 SPARSINE ✅ 12.23s ✅ 15.33s 1.25×
🟢 STEENBRD ❌ 0.96s ✅ 1.04s —
🐢 VANDERM1 ✅ 3.03s ✅ 5.70s 1.88×
🐢 VANDERM2 ✅ 3.02s ✅ 5.63s 1.86×

🟢 newly solved · 🔴 newly failed · ⚡/🐢 at least 1.25× faster/slower (both solved, ≥ 1s)

@cvanaret
cvanaret merged commit 5afbdf3 into main Nov 26, 2026
147 of 148 checks passed
@cvanaret
cvanaret deleted the soft_restoration branch November 26, 2026 18:51
@github-actions

Copy link
Copy Markdown

Full Mittelmann L-BFGS benchmark — before/after (time_limit=600s)

Before: PR #1031 · commit 26778f0 · run
After: PR #1097 · commit cffb697 · run

before after after/before
solved (47 common instances) 41 42 +1
shifted geo. mean time, all common instances¹ 46.46s 40.66s 0.88×
shifted geo. mean time, solved by both (41) 29.81s 27.23s 0.91×
shifted geo. mean model read time (47) 0.78s 0.79s 1.01×
shifted geo. mean solve time, solved by both (41) 29.34s 26.73s 0.91×

¹ shift of 10s; failures counted at the time limit.

🟢 Newly solved (1): rocket_12800

Per-instance results (47 instances)
instance model read before solve before model read after solve after model read after/before solve after/before
arki0003 0.01s ✅ 19.67s 0.01s ✅ 19.71s 1.00× 1.00×
arki0009 0.01s ❌ 249.03s 0.01s ❌ 253.55s 1.00× —
bearing_400 0.89s ❌ 600.35s 0.90s ❌ 600.19s 1.01× —
camshape_6400 0.03s ✅ 0.75s 0.03s ✅ 0.76s 1.00× 1.01×
clnlbeam 0.12s ✅ 134.28s 0.12s ✅ 136.36s 1.00× 1.02×
cont5_1_l 0.14s ✅ 12.72s 0.15s ✅ 12.87s 1.07× 1.01×
🐢 cont5_2_1_l 0.15s ✅ 89.16s 0.15s ✅ 211.72s 1.00× 2.37×
cont5_2_2_l 0.15s ✅ 114.40s 0.16s ✅ 114.95s 1.07× 1.00×
⚡ cont5_2_3_l 0.15s ✅ 127.95s 0.16s ✅ 58.43s 1.07× 0.46×
cont5_2_4_l 0.30s ✅ 6.55s 0.32s ✅ 6.60s 1.07× 1.01×
corkscrw 0.05s ✅ 4.51s 0.05s ✅ 4.55s 1.00× 1.01×
dirichlet120 1.78s ✅ 82.99s 1.78s ✅ 82.10s 1.00× 0.99×
dtoc1nd 0.82s ✅ 8.26s 0.84s ✅ 8.22s 1.02× 1.00×
dtoc2 0.57s ✅ 4.13s 0.58s ✅ 4.14s 1.02× 1.00×
elec_400 0.30s ✅ 34.88s 0.30s ✅ 34.85s 1.00× 1.00×
ex1_160 0.09s ✅ 1.64s 0.09s ✅ 1.64s 1.00× 1.00×
ex1_320 0.33s ✅ 8.91s 0.34s ✅ 9.00s 1.03× 1.01×
ex4_2_160 0.09s ✅ 2.54s 0.09s ✅ 2.56s 1.00× 1.01×
ex4_2_320 0.37s ✅ 15.57s 0.37s ✅ 15.57s 1.00× 1.00×
ex8_2_2 0.02s ✅ 2.26s 0.02s ✅ 2.34s 1.00× 1.04×
ex8_2_3 0.03s ✅ 2.82s 0.03s ✅ 2.90s 1.00× 1.03×
gasoil_3200 0.11s ✅ 15.22s 0.13s ✅ 15.34s 1.18× 1.01×
henon120 0.90s ✅ 50.99s 0.90s ✅ 51.02s 1.00× 1.00×
lane_emden120 1.30s ✅ 26.04s 1.32s ✅ 26.17s 1.02× 1.00×
marine_1600 0.11s ✅ 3.40s 0.12s ✅ 3.43s 1.09× 1.01×
NARX_CFy 0.13s ✅ 59.28s 0.12s ✅ 57.83s 0.92× 0.98×
nql180 0.20s ✅ 135.39s 0.21s ✅ 136.54s 1.05× 1.01×
optmass 0.06s ✅ 2.50s 0.06s ✅ 2.53s 1.00× 1.01×
pinene_3200 0.20s ✅ 5.04s 0.20s ✅ 5.08s 1.00× 1.01×
qcqp1000-1nc 0.23s ❌ 600.11s 0.23s ❌ 600.30s 1.00× —
⚡ qcqp1000-2c 0.47s ✅ 48.88s 0.48s ✅ 11.81s 1.02× 0.24×
qcqp1000-2nc 0.41s ✅ 10.08s 0.43s ✅ 10.35s 1.05× 1.03×
⚡ qcqp1500-1c 1.79s ✅ 392.12s 1.80s ✅ 46.68s 1.01× 0.12×
qcqp1500-1nc 1.58s ✅ 158.24s 1.63s ✅ 158.28s 1.03× 1.00×
qcqp500-3c 2.75s ✅ 91.99s 2.82s ✅ 91.62s 1.03× 1.00×
qcqp500-3nc 2.78s ✅ 343.81s 2.76s ✅ 331.39s 0.99× 0.96×
qcqp750-2c 9.02s ❌ 604.09s 9.16s ❌ 600.89s 1.02× —
qcqp750-2nc 9.04s ❌ 601.09s 9.20s ❌ 600.83s 1.02× —
qssp180 0.34s ✅ 399.03s 0.35s ✅ 394.71s 1.03× 0.99×
robot_1600 0.03s ✅ 0.70s 0.04s ✅ 0.71s 1.33× 1.01×
robot_a 0.18s ✅ 4.53s 0.18s ✅ 4.56s 1.00× 1.01×
robot_b 0.18s ✅ 11.10s 0.18s ✅ 11.29s 1.00× 1.02×
robot_c 0.18s ✅ 8.22s 0.18s ✅ 8.24s 1.00× 1.00×
🟢 rocket_12800 0.18s ❌ 21.25s 0.19s ✅ 49.01s 1.06× —
steering_12800 0.12s ✅ 57.30s 0.12s ✅ 58.91s 1.00× 1.03×
svanberg 0.30s ✅ 7.08s 0.30s ✅ 7.08s 1.00× 1.00×
WM_CFy 3.41s ✅ 408.92s 3.35s ✅ 406.73s 0.98× 0.99×

🟢 newly solved · 🔴 newly failed · ⚡/🐢 at least 1.25× faster/slower (both solved, ≥ 1s, on the wall time of the run)
model read and solve: from uno_ampl's log · * no breakdown (no optimization summary, or older results): wall time of the run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant