gemseo / problems / scalable / parametric

problem module

Scalable problem

Classes:

TMScalableProblem([n_shared, n_local, ...])

The scalable problem from Tedford and Martins, 2010, builds a list of strongly coupled scalable disciplines completed by a system discipline computing the objective function and the constraints.

class gemseo.problems.scalable.parametric.problem.TMScalableProblem(n_shared=1, n_local=None, n_coupling=None, full_coupling=True, noised_coupling=False, seed=1)[source]

Bases: gemseo.problems.scalable.parametric.core.problem.TMProblem

The scalable problem from Tedford and Martins, 2010, builds a list of strongly coupled scalable disciplines completed by a system discipline computing the objective function and the constraints.

These disciplines are defined on an unit design space (parameters comprised in [0, 1]).

Constructor.

Parameters
  • n_shared (int) –

    size of the shared design parameters. Default: 1.

    By default it is set to 1.

  • n_local (list(int)) –

    sizes of the local design parameters for the different disciplines. Same length as n_coupling. If None, use [1, 1]. Default: None.

    By default it is set to None.

  • n_coupling (list(int)) –

    sizes of the coupling parameters for the different disciplines. Same length as n_local. If None, use [1, 1]. Default: None.

    By default it is set to None.

  • full_coupling (bool) –

    if True, fully couple the disciplines. Otherwise, use circular coupling. Default: True.

    By default it is set to True.

  • noised_coupling (bool) –

    if True, add a noise component u_local_i on the i-th discipline output.

    By default it is set to False.

  • seed (int) –

    seed for replicability.

    By default it is set to 1.

Attributes:

disciplines

Alias for self.models.

main_discipline

Main disciplines.

n_disciplines

Alias for self.n_submodels.

sub_disciplines

Sub-disciplines.

Methods:

get_default_inputs([names])

Get default input values.

get_design_space()

Get the TM design space.

reset_design_space()

Reset the TM design space.

reset_disciplines()

Reset the disciplines, setting n_calls=0, n_calls_linearize=0, exec_time=0 and local_data={}.

property disciplines

Alias for self.models.

get_default_inputs(names=None)

Get default input values.

Parameters

names (list(str)) –

names of the inputs.

By default it is set to None.

Returns

name and values of the inputs.

Return type

dict

get_design_space()[source]

Get the TM design space.

Returns

instance of the design space

Return type

DesignSpace

property main_discipline

Main disciplines.

Returns

main discipline.

Return type

TMDiscipline

property n_disciplines

Alias for self.n_submodels.

reset_design_space()

Reset the TM design space.

reset_disciplines()[source]

Reset the disciplines, setting n_calls=0, n_calls_linearize=0, exec_time=0 and local_data={}.

property sub_disciplines

Sub-disciplines.

Returns

list of disciplines.

Return type

list(TMDiscipline)