Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add generic algorithm parameters API #365

Merged
merged 8 commits into from
Nov 19, 2020
Merged

add generic algorithm parameters API #365

merged 8 commits into from
Nov 19, 2020

Conversation

stevengj
Copy link
Owner

@stevengj stevengj commented Nov 18, 2020

This PR adds a new API nlopt_set_param(opt, "name", val) to set arbitrary named parameters for an optimizer. This gives us a generic API to set internal parameters of algorithms.

For example, it fixes #329 by adding the API:

nlopt_set_param(opt, "inner_maxeval", 10);
nlopt_set_param(opt, "dual_ftol_rel", 1e-8);

to set these parameters for the MMA or CCSA algorithms.

To do:

  • Documentation

No Matlab or Fortran bindings for this API. (Passing strings between Fortran and C is hard to do portably from the C side.)

@stevengj
Copy link
Owner Author

stevengj commented Nov 18, 2020

(Note: append ?w=1 to the diff URL to ignore whitespace changes.)

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Max inner iterations for MMA
1 participant