Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion test/nlp/quasi-newton.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@
@test Hop * v ≈ H(x) * v
Hop = hess_op!(nlp, x, Hv)
@test Hop * v ≈ H(x) * v

@test nlp.counters == nlp.model.counters
Comment thread
MaxenceGollier marked this conversation as resolved.
@test neval_obj(nlp) == neval_obj(nlp.model)
@test neval_grad(nlp) == neval_grad(nlp.model)
@test neval_hess(nlp) == neval_hess(nlp.model)
@test neval_hprod(nlp) == neval_hprod(nlp.model)

reset_data!(nlp)
Hop = hess_op!(nlp, x, Hv)
@test Hop * v == v
Expand Down