I am running into a problem trying to run the optimize.py file. I created a script very similar to the Regional_Jet_Optimization tutorial, but when I try to run it, I get the following error:
"problem.inputs = np.array([
TypeError: getattr expected at least 2 arguments, got 1"
My variable problem.inputs is defined as follows:
problem.inputs = np.array([
[ 'chord_root' , 46.668395125745384 , 30. , 90. , 10. , Units.inches],
[ 'taper' , 0.9 , 0.3 , 0.1 , 1. , Units.less],
[ 'wing_span' , 40.6 , 30. , 45. , 10. , Units.feet],
],dtype=object)
Does anyone know why I might be running into this issue? The formatting of the variable seems similar to the one used in the tutorial.
Thank you in advance for your help!