gemseo.utils.testing.bilevel_test_helper module#

Provide base test class stub for testing BiLevel also for GEMSEO plugins.

create_aerostructure_scenario(formulation_name)[source]#

Create an Aerostructure scenario.

Parameters:

formulation_name (str) -- The name of the BiLevel formulation to be used.

Returns:

An executed Aerostructure scenario.

create_dummy_bilevel_scenario(formulation_name)[source]#

Create a dummy BiLevel scenario.

It has to be noted that there is no strongly coupled discipline in this example. It implies that MDA1 will not be created. Yet, MDA2 will be created, as it is built with all the sub-disciplines passed to the BiLevel formulation.

Parameters:

formulation_name (str) -- The name of the BiLevel formulation to be used.

Returns:

A dummy BiLevel MDOScenario.

Return type:

MDOScenario

create_sobieski_bilevel_bcd_scenario()[source]#

Create a function to generate a BiLevel BCD Sobieski Scenario.

Returns:

A function which generates a BiLevel BCD Sobieski scenario with specific options.

Return type:

Callable[..., MDOScenario]

create_sobieski_bilevel_scenario(formulation_name='BiLevel')[source]#

Create a function to generate a BiLevel Sobieski Scenario.

Parameters:

formulation_name (str) --

The name of the formulation of the scenario.

By default it is set to "BiLevel".

Returns:

A function which generates a BiLevel Sobieski scenario with specific options.

Return type:

Callable[..., MDOScenario]

create_sobieski_sub_scenarios()[source]#

Creates the sub-scenarios for the Sobieski's SSBJ problem.

Returns:

The sub-scenarios of Sobieski's SuperSonic Business Jet.

Return type:

tuple[MDOScenario, MDOScenario, MDOScenario]