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
Fix error when store_trace=true with OptimizationOptimJL
This commit fixes issue #990 where using `store_trace = true` with OptimizationOptimJL solvers (e.g., NelderMead) would throw an error "type Array has no field iteration".
The bug occurred because when `store_trace = true`, the trace passed to the callback is an Array of OptimizationState objects rather than a single OptimizationState. The fix uses the existing `decompose_trace` function to ensure we always get a single OptimizationState object before accessing its fields.
Changes:
- Updated both _cb callback functions in OptimizationOptimJL.jl to use decompose_trace
- Added tests to verify store_trace=true works with NelderMead, Fminbox(NelderMead), and BFGS
Fixes#990
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments