JuliaSmoothOptimizers / JuliaSmoothOptimizers/NLPModels.jl

`get` error with NLSModels

Open
#415 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Julia
Stars
191
Forks
38
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.