In lines
|
@test isapprox(Jps[i], tmp_m, atol = rtol * max(Jmin, 1.0)) |
and
|
@test isapprox(Jtps[i], tmp_n, atol = rtol * max(Jmin, 1.0)) |
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).
In lines
NLPModelsTest.jl/src/nlp/consistency.jl
Line 456 in 476e47c
and
NLPModelsTest.jl/src/nlp/consistency.jl
Line 549 in 476e47c
we compare the usual
jtprod!(nlp, x, jtv)withjtprod!(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_structureandjac_coordon top ofjac_lin_***andjac_nln_***without putting the linear constraints first (for instance AmplNLReader.jl).