Skip to content

Compare jprod default and with jacobian structure #54

@tmigot

Description

@tmigot

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions