You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to add and option (options%check_derivatives = .True.) that checks for:
1st order derivatives (user Jacobian vs FD approximation)
2nd order derivatives (if Hessian callback (eval_H) or Hessian times vector HP callback (eval_HP) is/are provided)
If H and HP are provided then first check each of them against FD approximation
Also add a feature to see/check if user is providing J^T instead of J and the flag options%fortran_Jacobian is not set correctly.
Report back differences.
Add support for missing 1st order (possibly 2nd order) derivatives
Add support for completing missing entries from the user call-back of the Jacobian (eval_J) using finite differences, see Ceres chapter on derivatives.
This options should first check on the very first call which elements are provided and mark the missing ones to be approximated via FD, alternative it can check on every call (say only on first order callbacks) and approximate any required element.
The text was updated successfully, but these errors were encountered:
C.J.F. Ridders, Accurate computation of F'(x) and F'(x) F"(x), Advances in Engineering Software (1978), Volume 4, Issue 2, April 1982, Pages 75-76, ISSN 0141-1195, http://dx.doi.org/10.1016/S0141-1195(82)80057-0.
Add support for a derivatives checker via finite differences to test, Jacobian and Hessian
Also add a feature to see/check if user is providing J^T instead of J and the flag options%fortran_Jacobian is set or not.
talassio
changed the title
Add support for finite differences
Add support for finite difference + derivative checker
Dec 17, 2020
Add support for derivative checker
The idea is to add and option (
options%check_derivatives = .True.
) that checks for:eval_H
) or Hessian times vector HP callback (eval_HP
) is/are provided)options%fortran_Jacobian
is not set correctly.Report back differences.
Add support for missing 1st order (possibly 2nd order) derivatives
Add support for completing missing entries from the user call-back of the Jacobian (
eval_J
) using finite differences, see Ceres chapter on derivatives.This options should first check on the very first call which elements are provided and mark the missing ones to be approximated via FD, alternative it can check on every call (say only on first order callbacks) and approximate any required element.
The text was updated successfully, but these errors were encountered: