Skip to content
Snippets Groups Projects
Commit 8e1987d9 authored by Pierre-Elouan Rethore's avatar Pierre-Elouan Rethore
Browse files

adding additional options to the scipy easy driver

parent 621bd6f9
No related branches found
No related tags found
1 merge request!127Electrical cost and Parallel RandomSearch
......@@ -24,7 +24,7 @@ class EasyDriverBase():
class EasyScipyOptimizeDriver(ScipyOptimizeDriver, EasyDriverBase):
def __init__(self, optimizer='SLSQP', maxiter=200, tol=1e-6, disp=True):
def __init__(self, optimizer='SLSQP', maxiter=200, tol=1e-6, disp=True, **kwargs):
"""
Parameters
----------
......@@ -39,6 +39,8 @@ class EasyScipyOptimizeDriver(ScipyOptimizeDriver, EasyDriverBase):
"""
ScipyOptimizeDriver.__init__(self)
self.options.update({'optimizer': optimizer, 'maxiter': maxiter, 'tol': tol, 'disp': disp})
if kwargs:
self.options.update(kwargs)
def get_desvar_kwargs(self, model, desvar_name, desvar_values):
kwargs = super().get_desvar_kwargs(model, desvar_name, desvar_values)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment