Closed soldasim closed 6 months ago
In the provided MRE, all the unconstrained algorithms work and only COBYLA fails as it is the only one using AutoForwardDiff
.
However, the other algorithms also fail when provided with OptimizationFunction(rosenbrock, AutoForwardDiff())
instead of just rosenbrock
.
Have this issue and https://github.com/soldasim/BOSS.jl/issues/28 been resolved? Thanks.
Yes, the issue is resolved. Thanks for a speedy fix :)
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()