-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRIMA lib errors with AutoForwardDiff
#719
Labels
bug
Something isn't working
Comments
In the provided MRE, all the unconstrained algorithms work and only COBYLA fails as it is the only one using However, the other algorithms also fail when provided with |
Have this issue and soldasim/BOSS.jl#28 been resolved? Thanks. |
Yes, the issue is resolved. Thanks for a speedy fix :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug 🐞
Using any algortihm from
OptimizationPRIMA
in conjunction withAutoForwardDiff
results in an error.Expected behavior
The unconstrained algorithms should work exactly the same way with and without AD provided. (Since they are derivative-free.)
The
COBYLA
algorithm apparently uses AD for automatic detection of linear/nonlinear constraints (despite being derivative-free). It should not error when AD is provided though.Minimal Reproducible Example 👇
Consider the example from https://docs.sciml.ai/Optimization/stable/optimization_packages/prima;
(Note that I added the missing dependency
using ForwardDiff
.)Error & Stacktrace⚠️
Without the added
using ForwardDiff
;Running any of the PRIMA algs with
AutoForwardDiff
always results in the same error;Environment:
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
The text was updated successfully, but these errors were encountered: