|
[Sponsors] |
Error in Shape Design With Multiple Objectives and Penalty Functions |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Adithya B Nair
Join Date: Jun 2024
Posts: 3
Rep Power: 2 ![]() |
Hello, I am trying to run
Shape Design With Multiple Objectives and Penalty Functions tutorial in SU2.I am receiving this error.Please help me fix it. Traceback (most recent call last): File "/usr/local/bin/shape_optimization.py", line 306, in <module> main() File "/usr/local/bin/shape_optimization.py", line 184, in main shape_optimization( File "/usr/local/bin/shape_optimization.py", line 282, in shape_optimization SU2.opt.SLSQP(project, x0, xb, its, accu) File "/usr/local/bin/SU2/opt/scipy_tools.py", line 128, in scipy_slsqp outputs = fmin_slsqp( ^^^^^^^^^^^ File "/home/adithya/anaconda3/lib/python3.12/site-packages/scipy/optimize/_slsqp_py.py", line 210, in fmin_slsqp res = _minimize_slsqp(func, x0, args, jac=fprime, bounds=bounds, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ File "/home/adithya/anaconda3/lib/python3.12/site-packages/scipy/optimize/_slsqp_py.py", line 383, in _minimize_slsqp sf = _prepare_scalar_function(func, x, jac=jac, args=args, epsilon=eps, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ File "/home/adithya/anaconda3/lib/python3.12/site-packages/scipy/optimize/_optimize.py", line 288, in _prepare_scalar_function sf = ScalarFunction(fun, x0, args, grad, hess, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/adithya/anaconda3/lib/python3.12/site-packages/scipy/optimize/_differentiable_functions.py", line 185, in __init__ self._update_grad() File "/home/adithya/anaconda3/lib/python3.12/site-packages/scipy/optimize/_differentiable_functions.py", line 267, in _update_grad self._update_grad_impl() File "/home/adithya/anaconda3/lib/python3.12/site-packages/scipy/optimize/_differentiable_functions.py", line 175, in update_grad self.g = grad_wrapped(self.x) ^^^^^^^^^^^^^^^^^^^^ File "/home/adithya/anaconda3/lib/python3.12/site-packages/scipy/optimize/_differentiable_functions.py", line 172, in grad_wrapped return np.atleast_1d(grad(np.copy(x), *args)) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/SU2/opt/scipy_tools.py", line 434, in obj_df dobj_list = project.obj_df(x) ^^^^^^^^^^^^^^^^^ File "/usr/local/bin/SU2/opt/project.py", line 248, in obj_df return self._eval(konfig, func, dvs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/SU2/opt/project.py", line 211, in _eval vals = design._eval(func, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/SU2/eval/design.py", line 151, in _eval vals = eval_func(*inputs) ^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/SU2/eval/design.py", line 365, in obj_df grad = su2grad(obj_list, grad_method, config, state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/SU2/eval/gradients.py", line 97, in gradient grads = adjoint(func_name, config, state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/SU2/eval/gradients.py", line 214, in adjoint function(func_name, config, state) File "/usr/local/bin/SU2/eval/functions.py", line 124, in function func_out = state["FUNCTIONS"]["COMBO"] ~~~~~~~~~~~~~~~~~~^^^^^^^^^ KeyError: 'COMBO' |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forward simulations -- Evaluating objective function only without design modules | kensaii | SU2 Shape Design | 4 | April 25, 2020 15:12 |