JuliaSmoothOptimizers / NLPModelsJuMP.jl

Create NLPModels with JuMP
Other
36 stars 8 forks source link

Bug in hessian structure #143

Closed tmigot closed 3 months ago

tmigot commented 1 year ago

Oh, I think the problem comes from the model actually. I did the following (a bit nervous) test:

julia> using NLSProblems, NLPModels

julia> nlp = hs06()

julia> hess_structure(nlp)
([1, 267043088], [1, 167116808])

julia> hess_structure(nlp)
([1, 331019536], [1, 269359968])

julia> hess_structure(nlp)
([1, 331019536], [1, 167149984])

julia> hess_structure(nlp)
([1, 331019536], [1, 167150048])

julia> hess_structure(nlp)
([1, 5124065472], [1, 5124065472])

Originally posted by @tmigot in https://github.com/JuliaSmoothOptimizers/CaNNOLeS.jl/issues/43#issuecomment-1308778149

amontoison commented 3 months ago

@tmigot I found the bug when I worked on the support of quadratic constraints. I opened a PR to fix it: #185 I will tag a new release after.

tmigot commented 3 months ago

Great! Thanks