fast-aircraft-design / FAST-OAD

FAST-OAD: An open source framework for rapid Overall Aircraft Design
GNU General Public License v3.0
53 stars 26 forks source link

Error raising when removing handling auqlities module #159

Closed vinx012 closed 4 years ago

vinx012 commented 4 years ago

I have a problem when changing the configuration file. In fact, if I want to perform a simple analysis, let's say only the geometry and aerodynamics modules, I get the following error when removing the "fastoad.handling_qualities.static_margin" module:

RuntimeError: Group (): Output not found for response 'data:handling_qualities:static_margin:to_target'.

How can I remove this module without getting this error?

christophe-david commented 4 years ago

Your problem is that data:handling_qualities:static_margin:to_target is used as objective function in the definition of the optimization problem

By removing the module, you removed this variable, so OpenMDAO complains about a variable it does not know.

So, to solve this error, you simply have to change or remove the definition of the optimization problem.