Skip to content

Dual - #16

Merged
tttapa merged 6 commits into
kul-optec:mainfrom
blegat:dual
Jan 21, 2026
Merged

Dual#16
tttapa merged 6 commits into
kul-optec:mainfrom
blegat:dual

Conversation

@blegat

@blegat blegat commented Jan 21, 2026 •

Copy link
Copy Markdown
Contributor

It is indeed fixing the dual in some cases but with this, there are many tests that segfault. For instance, below is a simple one:
So I can't yet use it in the tests but the rest can already be merged

julia> using JuMP, QPALM

julia> model = Model(QPALM.Optimizer)
A JuMP Model
├ solver: QPALM
├ objective_sense: FEASIBILITY_SENSE
├ num_variables: 0
├ num_constraints: 0
└ Names registered in the model: none

julia> @variable(model, x)
x

julia> set_attribute(model, "enable_dual_termination", true)

julia> optimize!(model)

                  QPALM Version 1.0.0                   

Iter |   P. res   |   D. res   |  Stepsize  |  Objective  
==========================================================
LADEL ERROR: MATRIX (POSSIBLY) NOT FULL RANK (diagonal element of 0.000000e+00)

[393541] signal 11 (1): Segmentation fault
in expression starting at REPL[6]:1
ladel_dense_solve at /home/blegat/.julia/artifacts/44bd625e8d2e0ad75881f9500ddd01a52622dc49/lib/libqpalm_jll.so (unknown line)
compute_dual_objective at /home/blegat/.julia/artifacts/44bd625e8d2e0ad75881f9500ddd01a52622dc49/lib/libqpalm_jll.so (unknown line)
qpalm_solve at /home/blegat/.julia/artifacts/44bd625e8d2e0ad75881f9500ddd01a52622dc49/lib/libqpalm_jll.so (unknown line)
solve! at /home/blegat/.julia/dev/QPALM/src/wrappers.jl:306
solve! at /home/blegat/.julia/dev/QPALM/src/wrappers.jl:306 [inlined]
optimize! at /home/blegat/.julia/dev/QPALM/src/MOI_wrapper.jl:290
optimize! at /home/blegat/.julia/dev/MathOptInterface/src/MathOptInterface.jl:122 [inlined]
optimize! at /home/blegat/.julia/dev/MathOptInterface/src/Utilities/cachingoptimizer.jl:370
unknown function (ip: 0x7f3f6d7afa12) at (unknown file)
optimize! at /home/blegat/.julia/dev/MathOptInterface/src/Bridges/bridge_optimizer.jl:367 [inlined]
optimize! at /home/blegat/.julia/dev/MathOptInterface/src/MathOptInterface.jl:122 [inlined]
optimize! at /home/blegat/.julia/dev/MathOptInterface/src/Utilities/cachingoptimizer.jl:370
unknown function (ip: 0x7f3f6d79f742) at (unknown file)
#optimize!#96 at /home/blegat/.julia/packages/JuMP/7eD71/src/optimizer_interface.jl:609
optimize! at /home/blegat/.julia/packages/JuMP/7eD71/src/optimizer_interface.jl:560

@tttapa

tttapa commented Jan 21, 2026

Copy link
Copy Markdown
Collaborator

Thanks a lot! It seems that QPALM's routine for computing the dual assumes a positive definite Hessian. Let me see if I can easily add a fallback, at least for LPs.

@tttapa
tttapa merged commit 3fc2210 into kul-optec:main Jan 21, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants