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 docs say that the first argument passed to the callback function is an OptimizationState. But if I run the optimization with NEWUOA of PRIMA then it's actually an Array.
Expected behavior
First argument passed to the callback function is an OptimizationState.
Minimal Reproducible Example 👇
using Optimization, OptimizationPRIMA
functionproblem(x, p)
returnsum(x .^2)
endfunctionmain()
x =randn(10)
callback =function (state, obj, others...)
println("Iteration: $(state.iter)")
returnfalseend
p =OptimizationProblem(problem, x, callback = callback)
solve(p, NEWUOA())
endmain()
Describe the bug 🐞
The docs say that the first argument passed to the callback function is an
OptimizationState
. But if I run the optimization with NEWUOA of PRIMA then it's actually anArray
.Expected behavior
First argument passed to the callback function is an
OptimizationState
.Minimal Reproducible Example 👇
Error & Stacktrace⚠️
Environment:
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
The text was updated successfully, but these errors were encountered: