Commit 3da3cdf
Add support for dual_ftol_rel parameter in NLopt
Fixes #922 - Added handling for the dual_ftol_rel parameter which is
used by MMA/CCSA algorithms in NLopt to control the dual optimization
subproblem tolerance.
Previously, passing dual_ftol_rel would throw:
```
ERROR: UndefVarError: `dual_ftol_rel\!` not defined
```
Now the parameter is properly handled using NLopt.nlopt_set_param()
since it's not a direct setter function but a named parameter.
Changes:
- Added special case handling for dual_ftol_rel in __map_optimizer_args\!
- Uses NLopt.nlopt_set_param(opt, "dual_ftol_rel", value) instead of
trying to call a non-existent dual_ftol_rel\! function
This enables users to control the dual problem tolerance for faster
convergence in high-dimensional problems with CCSA/MMA algorithms.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent c5648ec commit 3da3cdf
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
0 commit comments