JuliaSmoothOptimizers / JuliaSmoothOptimizers/PDENLPModels.jl
Duplicate entries in jac_structure
Open
- Dominant language
- Julia
- Stars
- 22
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
I have an issue when using `PDENLPModels.jl`.
When I call
```
(rows,cols) = jac_structure(nlp)
```
on some `PDENLPModel`, the tuple `(rows,cols)` can have duplicate entries which creates bugs on some linear algebra packages (like `QRMumps.jl`).
I think it would be easier to add a condition in the jac_structure function to prevent this.
I have a minimal working example if needed which is just the `test/problems/controleslaticmembrane.jl` example with `n=20`.
Contributor guide
Assessment
This issue has not been assessed yet.