贡献或建议的正确程序 feature/improvements

Right procedure for contributing or suggesting feature/improvements

我想向 problem.driver 输入公开一些 COBYLA 选项。我在驱动程序的两个方法中实现了几行:

~/OpenMDAO/openmdao/drivers/scipy_optimizer.py (见下文)

尽管这可以正常工作(即 prob.driver.options['initstep'] = 3.),但我不确定是否应该有这样的功能,或者这是否是正确的做法这个。因为我可以在 desc = "For detailed control, use solver-specific options."

中看到注释

应该如何处理这类 development/simple 功能问题?

   class ScipyOptimizeDriver(Driver):   
    ...
    ...
    ...
    ...
    ...
        def _declare_options(self):
            self.options.declare('initstep', default=1., types=float,
                                 desc='COBYLA: Reasonable initial changes to the variables')



        def run(self):
     ...
     ...
     ...
            if opt == 'COBYLA':
                self.opt_settings['rhobeg'] = self.options['initstep']

您可以在 OpenMDAO github page 上提交拉取请求。 NASA 格伦研究中心的开发团队将执行代码审查,然后按原样接受或提出更改请求。

感谢您对本项目的关注!