NLPModels.jl icon indicating copy to clipboard operation
NLPModels.jl copied to clipboard

`get` error with NLSModels

Open tmigot opened this issue 3 years ago • 2 comments

The definition of the getter https://github.com/JuliaSmoothOptimizers/NLPModels.jl/blob/main/src/nls/tools.jl is overloading the classical getter. So, we get:

julia> using NLPModels, NLPModelsTest

julia> nlp = LLS();

julia> (nlp.meta.nnzh, nlp.nls_meta.nnzh)
(2, 0)

julia> get_nnzh(nlp)
0

julia> nlp = NLSLC();

julia> (nlp.meta.nnzh, nlp.nls_meta.nnzh)
(120, 15)

julia> get_nnzh(nlp)
15

This is the error here https://github.com/JuliaSmoothOptimizers/NLPModelsTest.jl/pull/60

tmigot avatar Aug 24 '22 15:08 tmigot

What's NLSLC?

dpo avatar Aug 24 '22 21:08 dpo

These are test problems from NLPModelsTest.jl https://github.com/JuliaSmoothOptimizers/NLPModelsTest.jl/tree/main/src/nls/problems

tmigot avatar Aug 25 '22 11:08 tmigot