JuliaSmoothOptimizers / JuliaSmoothOptimizers/NLPModelsTest.jl
Compare jprod default and with jacobian structure
- Dominant language
- Julia
- Stars
- 7
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
In lines
https://github.com/JuliaSmoothOptimizers/NLPModelsTest.jl/blob/476e47c6e733a5de6a7d669c292f4c7a2ffd70eb/src/nlp/consistency.jl#L456
and
https://github.com/JuliaSmoothOptimizers/NLPModelsTest.jl/blob/476e47c6e733a5de6a7d669c292f4c7a2ffd70eb/src/nlp/consistency.jl#L549
we compare the usual `jtprod!(nlp, x, jtv)` with `jtprod!(nlps[i], rows, cols, vals, w, tmp_n)`.
However, the results may differ (in the order of the returned vector), since some models re-implement `jac_structure` and `jac_coord` on top of `jac_lin_***` and `jac_nln_***` without putting the linear constraints first (for instance AmplNLReader.jl).
Contributor guide
Assessment
This issue has not been assessed yet.