Related PR: https://github.com/JuliaSmoothOptimizers/NLPModelsJuMP.jl/pull/211#discussion_r2265038104