Aviary icon indicating copy to clipboard operation
Aviary copied to clipboard

Methods for Level 2 Overwrites Optimizer Settings

Open bdphilli opened this issue 1 year ago • 1 comments

Desired capability or behavior.

When using SNOPT in add_driver from methods for level 2, any upstream optimizer tolerance options are overwritten by default values.

https://github.com/OpenMDAO/Aviary/blob/main/aviary/interface/methods_for_level2.py#L1684

Is your feature request related to a problem? Please describe.

Allow add_driver to ingest opt_settings

Associated Bug Report

No response

bdphilli avatar Oct 24 '24 14:10 bdphilli

We can try checking if a value in driver options exists before setting the default. Is there a specific use case where you need to define driver options before calling add_driver, or can you move your tolerance setting to after that call via prob.driver.opt_settings["option_name"]? I'm pretty sure that should work without any modification to source code, but I've never tried manually changed driver settings like tolerance myself before

jkirk5 avatar Aug 25 '25 18:08 jkirk5