Skip to content

derivative check with IPOPT #83

Open
@junhyeokahn

Description

@junhyeokahn

Hello,
First of all, thanks for maintaining this nice repo!

In the hopper_example.cc, I have added this line to check derivatives.

solver->SetOption("derivative_test", "first-order")
solver->SetOption("derivative_test_tol", 1e-3);

And I got the results as shown in the attached screenshot.
Screenshot from 2021-01-14 11-54-59

where the constraints and variables are indexed as following:
Screenshot from 2021-01-14 11-53-32

Most of the derivatives are very very close, but there were some jacobian elements that have a relatively bigger error between the analytically computed value and the numerically computed value.
To which degree do you expect this comparison should be similar?
Should they be exactly the same or ~0.01 error is inevitable and should be accepted?

Best,
Junhyeok

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