Commit 49c7f2f
Fix deprecated field names in MultistartOptimization result handling
Updates the `_local_optimiser` function in OptimizationMultistartOptimization
to use the current field names for optimization results:
- Changed `res.minimum` to `res.objective`
- Changed `res.minimizer` to `res.u`
This resolves deprecation warnings when running tests and ensures compatibility
with the current OptimizationSolution API.
The traits for MultistartOptimization.TikTak are already correctly set:
- `requiresbounds = true` (TikTak needs bounds for Sobol sequence generation)
- `allowsbounds = true` (TikTak passes bounds to local optimizer)
Fixes issue mentioned in https://discourse.julialang.org/t/error-when-using-multistart-optimization/133174
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent d201417 commit 49c7f2f
File tree
1 file changed
+1
-1
lines changed- lib/OptimizationMultistartOptimization/src
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments