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
I wanted to find the partial double and mixed derivatives of the variables c1_length, c2_length, c3_length with respect to the variables px and py. The first order derivatives of the same, obtained using ForwardDiff.gradient or ForwardDiff.jacobian are working fine, but ForwardDiff.hessian returns a method error.
Below is a MWE of the concerned functions: Minimum working example
using NonlinearSolve, ForwardDiff, SciMLSensitivity
function objfn(F,init,params)
th1,th2 = init
px,py,l1,l2 = params
F[1] = l1*cos(th1)+l2*cos(th1+th2)-px
F[2] = l1*sin(th1)+l2*sin(th1+th2)-py
return F
end
Status `C:\Users\user\OneDrive\Desktop\Isaac John\julia_env\Project.toml`
[824d6782] Bonito v3.1.1
[f6369f11] ForwardDiff v0.10.36
[e9467ef8] GLMakie v0.10.1
[7073ff75] IJulia v1.24.2
⌅ [8913a72c] NonlinearSolve v3.4.0
⌅ [1ed8b502] SciMLSensitivity v7.51.0
[276b4fcb] WGLMakie v0.10.1
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated`
Output of Pkg.status(; mode = PKGMODE_MANIFEST) is
I wanted to find the partial double and mixed derivatives of the variables c1_length, c2_length, c3_length with respect to the variables px and py. The first order derivatives of the same, obtained using ForwardDiff.gradient or ForwardDiff.jacobian are working fine, but ForwardDiff.hessian returns a method error.
Below is a MWE of the concerned functions:
Minimum working example
using NonlinearSolve, ForwardDiff, SciMLSensitivity
The output for
grad1 = ForwardDiff.gradient(solve_nlprob,[34.0,87.0])
isThe output error for
hess1 = ForwardDiff.hessian(solve_nlprob,[34.0,87.0])
is a method error which is:Error and Stacktrace
Environment
using Pkg Pkg.status()
is:Pkg.status(; mode = PKGMODE_MANIFEST)
isversioninfo()
isThe text was updated successfully, but these errors were encountered: