Skip to content

Never raise upper bound of filter in restoration + detect unboundedness with relative test - #1100

Merged
cvanaret merged 4 commits into
mainfrom
raise_filter_ubd_only_in_optimality
Nov 26, 2026
Merged

cvanaret merged 4 commits into
mainfrom
raise_filter_ubd_only_in_optimality

Conversation

@cvanaret

@cvanaret cvanaret commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner
  • In the restoration phase, the elastic variables absorb the violation of the relaxed constraints: a step limited by the infeasibility upper bound does not signal a too tight bound, but a step that would increase the residuals of the restoration problem by orders of magnitude. Raising the bound (filter_ubd_raise_trigger, see Waechter filter: raise the infeasibility upper bound when it limits the line search #996) let the restoration iterates of CUTE's polak3 run away (residuals up to 1e9, then 'Line search failed' or the iteration limit). The optimality phase keeps the adaptive upper bound.
    Also: the first soft restoration step of an outer iteration is printed with its iteration number and phase.

  • The problem was declared unbounded only when a feasible iterate had an objective below unbounded_objective_threshold (-1e20). On CUTE's coshfun (preset ipopt), the iterates follow the feasible ray $f = 5 - 2t^2$ ($x_{3k-2} = t$, $x_{3k-1} = 0$, $x_{3k} = -1$) and the objective decreases by about 1e8 per iteration: -1e20 is out of reach, and the solver stops at the iteration limit around -1e12.
    New test (UnboundedObjectiveDetector), still restricted to feasible iterates (unscaled primal infeasibility below tight_unscaled_primal_infeasibility_tolerance): the objective is below f_ref - unbounded_objective_relative_decrease * max(1, |f_ref|), f_ref being the objective of the first feasible iterate, at unbounded_objective_iteration_threshold consecutive feasible iterates (defaults: 1e10, 5; inf disables the relative test). An infeasible iterate restarts the streak. This is a termination heuristic only: the iterates are untouched.

@cvanaret cvanaret self-assigned this Nov 26, 2026
@cvanaret cvanaret added the bug Something isn't working label Nov 26, 2026
Repository owner deleted a comment from github-actions Bot Nov 26, 2026
@cvanaret cvanaret changed the title Restoration phase: never raise infeasibility upper bound of filter Never raise upper bound of filter in restoration + detect unboundedness with relative test Nov 26, 2026
@github-actions

Copy link
Copy Markdown

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

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

Performance profile (objective evaluations)

before after after/before
solved (429 common instances) 426 425 (-1) —
shifted geo. mean objective evaluations, solved by both (425) 26.99 26.98 1.00×
shifted geo. mean solve time, solved by both (425) 0.006s 0.006s 0.98×

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

🔴 Newly failed (1): coshfun

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

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) 426 425 410
shifted geo. mean objective evaluations, solved by the 3 (409) 23.78 23.78 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 (3 of 429)
instance before after after/before
🔴 coshfun ✅ 420 ❌ 10024 —
hs085 ✅ 104 ✅ 109 1.05×
polak3 ✅ 1966 ✅ 1703 0.87×

🟢 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

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

Before: PR #1098 · commit 23408a3 · run
After: PR #1100 · commit 746b937 · run · preset filtersqp · linear solver MA57 · time_limit=60s · all (429 instances)

Performance profile (objective evaluations)

before after after/before
solved (429 common instances) 428 428 (+0) —
shifted geo. mean objective evaluations, solved by both (428) 15.44 15.41 1.00×
shifted geo. mean solve time, solved by both (428) 0.006s 0.006s 0.99×

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 1 of the 428 instances solved by both: fewer on 1, more on 0.

Against filterSQP (20020316)

Performance profile against filterSQP (20020316) (objective evaluations)

before after filterSQP (20020316)
solved (429 common instances) 428 428 403
shifted geo. mean objective evaluations, solved by the 3 (403) 14.23 14.20 13.45

filterSQP (20020316): reference results from nonlinear_optimization_solver_benchmark, obtained with its own tolerances and limits (times not comparable).

Instances whose status or objective evaluations changed (1 of 429)
instance before after after/before
📉 coshfun ✅ 86 ✅ 52 0.60×

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

@cvanaret

Copy link
Copy Markdown
Owner Author

We lose CUTE's coshfun with ipopt (looks like a chaotic run and depends on the machine). The PR is legit, so I'm OK with that.

@github-actions

Copy link
Copy Markdown

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

Before: PR #1098 · commit 23408a3 · run
After: PR #1100 · commit 746b937 · run

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

¹ 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.95s 1.00× 1.00×
arki0009 0.01s ✅ 4.66s 0.01s ✅ 4.65s 1.00× 1.00×
bearing_400 0.90s ✅ 4.74s 0.89s ✅ 4.80s 0.99× 1.01×
camshape_6400 0.04s ✅ 1.05s 0.03s ✅ 1.07s 0.75× 1.02×
clnlbeam 0.12s ✅ 21.68s 0.11s ✅ 21.72s 0.92× 1.00×
cont5_1_l 0.14s ✅ 11.25s 0.14s ✅ 11.26s 1.00× 1.00×
cont5_2_1_l 0.15s ✅ 27.72s 0.15s ✅ 27.68s 1.00× 1.00×
cont5_2_2_l 0.16s ✅ 35.09s 0.15s ✅ 35.14s 0.94× 1.00×
cont5_2_3_l 0.15s ✅ 47.24s 0.15s ✅ 47.24s 1.00× 1.00×
cont5_2_4_l 0.31s ✅ 27.92s 0.30s ✅ 27.87s 0.97× 1.00×
corkscrw 0.05s ✅ 2.88s 0.05s ✅ 2.87s 1.00× 1.00×
dirichlet120 1.76s ✅ 90.89s 1.76s ✅ 90.98s 1.00× 1.00×
dtoc1nd 0.83s ✅ 2.28s 0.85s ✅ 2.29s 1.02× 1.00×
dtoc2 0.57s ✅ 2.60s 0.57s ✅ 2.59s 1.00× 1.00×
elec_400 0.29s ✅ 65.39s 0.29s ✅ 65.31s 1.00× 1.00×
ex1_160 0.09s ✅ 1.30s 0.08s ✅ 1.29s 0.89× 0.99×
ex1_320 0.33s ✅ 8.64s 0.33s ✅ 8.56s 1.00× 0.99×
ex4_2_160 0.09s ✅ 1.70s 0.08s ✅ 1.70s 0.89× 1.00×
ex4_2_320 0.37s ✅ 7.61s 0.36s ✅ 7.71s 0.97× 1.01×
ex8_2_2 0.02s ✅ 0.26s 0.01s ✅ 0.27s 0.50× 1.04×
ex8_2_3 0.03s ✅ 0.74s 0.02s ✅ 0.75s 0.67× 1.01×
gasoil_3200 0.12s ✅ 1.53s 0.12s ✅ 1.53s 1.00× 1.00×
henon120 0.89s ✅ 116.05s 0.88s ✅ 116.46s 0.99× 1.00×
lane_emden120 1.30s ✅ 107.16s 1.30s ✅ 107.17s 1.00× 1.00×
marine_1600 0.12s ✅ 1.53s 0.11s ✅ 1.56s 0.92× 1.02×
NARX_CFy 0.13s ✅ 76.11s 0.12s ✅ 76.28s 0.92× 1.00×
nql180 0.21s ✅ 10.72s 0.20s ✅ 10.71s 0.95× 1.00×
optmass 0.06s ✅ 1.33s 0.06s ✅ 1.34s 1.00× 1.01×
pinene_3200 0.19s ✅ 2.02s 0.19s ✅ 2.05s 1.00× 1.01×
qcqp1000-1nc 0.23s ✅ 21.51s 0.22s ✅ 21.53s 0.96× 1.00×
qcqp1000-2c 0.47s ✅ 24.44s 0.47s ✅ 24.38s 1.00× 1.00×
qcqp1000-2nc 0.43s ✅ 21.31s 0.42s ✅ 21.31s 0.98× 1.00×
qcqp1500-1c 1.79s ✅ 93.80s 1.79s ✅ 92.94s 1.00× 0.99×
qcqp1500-1nc 1.60s ✅ 84.66s 1.61s ✅ 84.03s 1.01× 0.99×
qcqp500-3c 2.77s ✅ 579.21s 2.76s ✅ 578.77s 1.00× 1.00×
qcqp500-3nc 2.79s ✅ 81.77s 2.77s ✅ 81.78s 0.99× 1.00×
qcqp750-2c 9.13s ✅ 262.01s 9.10s ✅ 261.40s 1.00× 1.00×
qcqp750-2nc 9.11s ✅ 418.52s 9.03s ✅ 419.22s 0.99× 1.00×
qssp180 0.35s ✅ 10.20s 0.34s ✅ 10.17s 0.97× 1.00×
robot_1600 0.03s ✅ 0.68s 0.03s ✅ 0.68s 1.00× 1.00×
robot_a 0.18s ✅ 7.11s 0.18s ✅ 7.24s 1.00× 1.02×
robot_b 0.18s ✅ 17.96s 0.18s ✅ 17.47s 1.00× 0.97×
robot_c 0.18s ✅ 8.46s 0.18s ✅ 8.41s 1.00× 0.99×
rocket_12800 0.19s ✅ 2.87s 0.18s ✅ 2.86s 0.95× 1.00×
steering_12800 0.12s ✅ 2.49s 0.11s ✅ 2.48s 0.92× 1.00×
svanberg 0.29s ✅ 5.19s 0.29s ✅ 5.20s 1.00× 1.00×
WM_CFy 3.42s ✅ 838.71s 3.38s ✅ 839.70s 0.99× 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 #1098 · commit 23408a3 · run
After: PR #1100 · commit 746b937 · run

before after after/before
solved (1565 common instances) 1449 1451 +2
shifted geo. mean time, all common instances¹ 4.70s 4.63s 0.98×
shifted geo. mean time, solved by both (1445) 1.42s 1.41s 0.99×

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

🟢 Newly solved (6): COSHFUN, DIAGNQB, DIAGNQE, DIAGNQT, NCVXQP7, TRO4X4

🔴 Newly failed (4): BRAINPC6, CATENA, DMN15333LS, S365

Instances whose status or time changed (19 of 1565)
instance before after after/before
🐢 BRAINPC2 ✅ 13.52s ✅ 32.01s 2.37×
🔴 BRAINPC6 ✅ 3.83s ❌ 63.10s —
🔴 CATENA ✅ 205.08s ❌ 13.61s —
🟢 COSHFUN ❌ 282.96s ✅ 266.00s —
🟢 DIAGNQB ❌ 0.66s ✅ 0.01s —
🟢 DIAGNQE ❌ 0.66s ✅ 0.01s —
🟢 DIAGNQT ❌ 0.66s ✅ 0.01s —
🔴 DMN15333LS ✅ 286.44s ❌ 300.05s —
🐢 EIGENAU ✅ 38.62s ✅ 51.43s 1.33×
⚡ HVYCRASH ✅ 137.31s ✅ 6.15s 0.04×
⚡ MSQRTB ✅ 4.18s ✅ 2.83s 0.68×
🟢 NCVXQP7 ❌ 301.69s ✅ 293.65s —
🐢 NET4 ✅ 141.56s ✅ 177.15s 1.25×
⚡ NINE12 ✅ 9.71s ✅ 7.52s 0.77×
⚡ OPTMASS ✅ 1.43s ✅ 1.06s 0.74×
⚡ ORTHREGF ✅ 1.59s ✅ 1.27s 0.80×
🔴 S365 ✅ 0.01s ❌ 0.07s —
🟢 TRO4X4 ❌ 0.34s ✅ 0.05s —
🐢 YATP2CNE ✅ 6.36s ✅ 8.10s 1.27×

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

@cvanaret
cvanaret merged commit b2ae955 into main Nov 26, 2026
137 checks passed
@cvanaret
cvanaret deleted the raise_filter_ubd_only_in_optimality branch November 26, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant