.. Copyright 2021 IRT Saint-Exupéry, https://www.irt-saintexupery.com This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. .. _gen_discipline_algos: Disciplines =========== .. warning:: Some capabilities may require the :ref:`installation ` of |g| with :ref:`all its features ` and some others may depend on :ref:`plugins `. .. warning:: All the features of the wrapped libraries may not be exposed through |g|. .. raw:: html .. _Aerodynamics_options: Aerodynamics ------------ Module: :class:`gemseo.problems.mdo.aerostructure.aerostructure` .. _AnalyticDiscipline_options: AnalyticDiscipline ------------------ Module: :class:`gemseo.disciplines.analytic` .. raw:: html
Required settings
  • **expressions** : *Mapping[str, str | Expr]* The outputs expressed as functions of the inputs. .. raw:: html
.. raw:: html
Optional settings
  • **name** : *str* The name of the discipline. If empty, use the name of the class. By default it is set to . .. raw:: html
.. _ArrayBasedFunctionDiscipline_options: ArrayBasedFunctionDiscipline ---------------------------- Module: :class:`gemseo.disciplines.array_based_function` .. raw:: html
Required settings
  • **function** : *Callable[[RealArray], RealArray]* The function of interest whose both the unique argument and the output are NumPy arrays. .. raw:: html
  • **input_names_to_sizes** : *dict[str, int]* The mapping from the names to the sizes for the input. .. raw:: html
  • **output_names_to_sizes** : *dict[str, int]* The mapping from the names to the sizes for the output. .. raw:: html
.. raw:: html
Optional settings
  • **jac_function** : *Callable[[RealArray], RealArray] | None, optional* The function computing the derivatives of the function of interest; both its unique argument and its output (i.e. a Jacobian matrix) are NumPy arrays. If ``None``, the derivatives will have to be approximated if required. By default it is set to None. .. raw:: html
.. _AutoPyDiscipline_options: AutoPyDiscipline ---------------- Module: :class:`gemseo.disciplines.auto_py` .. raw:: html
Required settings
  • **py_func** : *Callable* The Python function to compute the outputs from the inputs. .. raw:: html
.. raw:: html
Optional settings
  • **name** : *str* The name of the discipline. If empty, use the name of the Python function. By default it is set to . .. raw:: html
  • **py_jac** : *Callable | None, optional* The Python function to compute the Jacobian from the inputs; its output value must be a 2D NumPy array with rows corresponding to the outputs and columns to the inputs. By default it is set to None. .. raw:: html
  • **use_arrays** : *bool, optional* Whether the function is expected to take arrays as inputs and give outputs as arrays. By default it is set to False. .. raw:: html
.. _Concatenater_options: Concatenater ------------ Module: :class:`gemseo.disciplines.concatenater` .. raw:: html
Required settings
  • **input_variables** : *Sequence[str]* The input variables to concatenate. .. raw:: html
  • **output_variable** : *str* The output variable name. .. raw:: html
.. raw:: html
Optional settings
  • **input_coefficients** : *dict[str, float] | None, optional* The coefficients related to the different input variables. By default it is set to None. .. raw:: html
.. _ConstraintAggregation_options: ConstraintAggregation --------------------- Module: :class:`gemseo.disciplines.constraint_aggregation` .. raw:: html
Required settings
  • **aggregation_function** : *EvaluationFunction* The aggregation function or its name, e.g. IKS, lower_bound_KS,upper_bound_KS, POS_SUM and SUM. .. raw:: html
  • **constraint_names** : *Sequence[str]* The names of the constraints to aggregate, which must be discipline outputs. .. raw:: html
.. raw:: html
Optional settings
  • **name** : *str* The name of the discipline. If empty, use the name of the class. By default it is set to . .. raw:: html
  • ****options** : *Any, optional* The options for the aggregation method. .. raw:: html
.. _DensityFilter_options: DensityFilter ------------- Module: :class:`gemseo.problems.topology_optimization.density_filter_disc` .. raw:: html
Optional settings
  • **min_member_size** : *float, optional* The minimum structural member size. By default it is set to 1.5. .. raw:: html
  • **n_x** : *int, optional* The number of elements in the x-direction. By default it is set to 100. .. raw:: html
  • **n_y** : *int, optional* The number of elements in the y-direction. By default it is set to 100. .. raw:: html
  • **name** : *str* The name of the discipline. If empty, use the name of the class. By default it is set to . .. raw:: html
.. _DiscFromExe_options: DiscFromExe ----------- Module: :class:`gemseo.disciplines.wrappers.disc_from_exe` .. raw:: html
Required settings
  • **command_line** : *str* The command line to run the executable. E.g. ``python my_script.py -i input.txt -o output.txt`` .. raw:: html
  • **input_filename** : *str | Path* The name of the input file to be generated in the output folder. E.g. ``"input.txt"``. .. raw:: html
  • **input_template** : *str | Path* The path to the input template file. The input locations in the file are marked by ``GEMSEO_INPUT{input_name::1.0}``, where ``input_name`` is the name of the input variable, and ``1.0`` is its default value. .. raw:: html
  • **output_filename** : *str | Path* The name of the output file to be generated in the output folder. E.g. ``"output.txt"``. .. raw:: html
  • **output_template** : *str | Path* The path to the output template file. The output locations in the file are marked by ``GEMSEO_OUTPUT{output_name::1.0}``, where ``output_name`` is the name of the output variable, and ``1.0`` is its default value. .. raw:: html
  • **root_directory** : *str | Path* The base path of the execution directories. .. raw:: html
.. raw:: html
Optional settings
  • **clean_after_execution** : *bool, optional* Whether to clean the last created directory after execution. By default it is set to False. .. raw:: html
  • **directory_naming_method** : *DirectoryNamingMethod, optional* The method to create the execution directories. By default it is set to NUMBERED. .. raw:: html
  • **name** : *str* The name of the discipline. If empty, use the name of the class. By default it is set to . .. raw:: html
  • **parse_out_separator** : *str, optional* The separator used for the :attr:`~.Parser.KEY_VALUE` output parser. By default it is set to =. .. raw:: html
  • **parse_outfile_method** : *Parser | OutputParser, optional* The optional method that can be provided by the user to parse the output template file. If the :attr:`~.Parser.KEY_VALUE` is used as output parser, the user may specify the separator key. By default it is set to TEMPLATE. .. raw:: html
  • **write_input_file_method** : *InputWriter | None, optional* The method to write the input data file. If ``None``, use :func:`~.write_input_file`. By default it is set to None. .. raw:: html
.. _FilteringDiscipline_options: FilteringDiscipline ------------------- Module: :class:`gemseo.disciplines.wrappers.filtering_discipline` .. raw:: html
Required settings
  • **discipline** : *Discipline* The original discipline. .. raw:: html
.. raw:: html
Optional settings
  • **input_names** : *Iterable[str] | None, optional* The names of the inputs of interest. If ``None``, use all the inputs. By default it is set to None. .. raw:: html
  • **keep_in** : *bool, optional* Whether to keep the inputs of interest. Otherwise, remove them. By default it is set to True. .. raw:: html
  • **keep_out** : *bool, optional* Whether to keep the outputs of interest. Otherwise, remove them. By default it is set to True. .. raw:: html
  • **output_names** : *Iterable[str] | None, optional* The names of the outputs of interest. If ``None``, use all the outputs. By default it is set to None. .. raw:: html
.. _FiniteElementAnalysis_options: FiniteElementAnalysis --------------------- Module: :class:`gemseo.problems.topology_optimization.fea_disc` .. raw:: html
Optional settings
  • **f_amplitude** : *int | Sequence[int], optional* The force amplitude for each pair ``(f_node, f_direction)``. By default it is set to -1. .. raw:: html
  • **f_direction** : *int | Sequence[int], optional* The force direction for each ``f_node``, either 0 for x or 1 for y. By default it is set to 1. .. raw:: html
  • **f_node** : *int | Sequence[int], optional* The indices of the nodes where the forces are applied. By default it is set to 10200. .. raw:: html
  • **fixed_dir** : *int | Sequence[int] | None, optional* The clamped direction for each node, encode 0 for x and 1 for y. If ``None``, a default value is used. By default it is set to None. .. raw:: html
  • **fixed_nodes** : *int | Sequence[int] | None, optional* The indices of the nodes where the structure is clamped. If ``None``, a default value is used. By default it is set to None. .. raw:: html
  • **n_x** : *int, optional* The number of elements in the x-direction. By default it is set to 100. .. raw:: html
  • **n_y** : *int, optional* The number of elements in the y-direction. By default it is set to 100. .. raw:: html
  • **name** : *str* The name of the discipline. If empty, use the name of the class. By default it is set to . .. raw:: html
  • **nu** : *float, optional* The material Poisson's ratio. By default it is set to 0.3. .. raw:: html
.. _IshigamiDiscipline_options: IshigamiDiscipline ------------------ Module: :class:`gemseo.problems.uncertainty.ishigami.ishigami_discipline` .. _JobSchedulerDisciplineWrapper_options: JobSchedulerDisciplineWrapper ----------------------------- Module: :class:`gemseo.disciplines.wrappers.job_schedulers.discipline_wrapper` .. raw:: html
Required settings
  • **discipline** : *Discipline* The discipline to wrap in the job scheduler. .. raw:: html
  • **workdir_path** : *Path* The path to the workdir where the files will be generated. .. raw:: html
.. raw:: html
Optional settings
  • **job_out_filename** : *str, optional* The output job file name. By default it is set to batch.srun. .. raw:: html
  • **job_template_path** : *Path | str | None, optional* The path to the template to be used to make a submission to the job scheduler command. By default it is set to None. .. raw:: html
  • **scheduler_run_command** : *str, optional* The command to call the job scheduler and submit the generated script. By default it is set to sbatch --wait. .. raw:: html
  • **setup_cmd** : *str* The command used before running the executable. By default it is set to . .. raw:: html
  • **use_template** : *bool, optional* whether to use template based interface to the job scheduler. By default it is set to True. .. raw:: html
.. _LSF_options: LSF --- Module: :class:`gemseo.disciplines.wrappers.job_schedulers.lsf` .. raw:: html
Required settings
  • **discipline** : *Discipline* The discipline to wrap in the job scheduler. .. raw:: html
  • **workdir_path** : *Path* The path to the workdir where the files will be generated. .. raw:: html
.. raw:: html
Optional settings
  • **job_out_filename** : *str, optional* The output job file name. By default it is set to batch.sh. .. raw:: html
  • **job_template_path** : *Path | str | None, optional* The path to the template to be used to make a submission to the job scheduler command. By default it is set to None. .. raw:: html
  • **mem_per_cpu** : *str, optional* The memory per CPU. By default it is set to 1G. .. raw:: html
  • **ntasks** : *int, optional* The number of tasks. By default it is set to 1. .. raw:: html
  • **ntasks_per_node** : *int, optional* The number of tasks per node. By default it is set to 1. .. raw:: html
  • **scheduler_run_command** : *str, optional* The command to call the job scheduler and submit the generated script. By default it is set to bsub -K. .. raw:: html
  • **setup_cmd** : *str* The command used before running the executable. By default it is set to . .. raw:: html
  • **user_email** : *str* The user email to send the run status. By default it is set to . .. raw:: html
  • **wall_time** : *str, optional* The wall time. By default it is set to 24:00:00. .. raw:: html
  • ****options** : *dict[str:Any], optional* The job scheduler specific options to be used in the template. .. raw:: html
.. _LinearCombination_options: LinearCombination ----------------- Module: :class:`gemseo.disciplines.linear_combination` .. raw:: html
Required settings
  • **input_names** : *Iterable[str]* The names of input variables. .. raw:: html
  • **output_name** : *str* The name of the output variable. .. raw:: html
.. raw:: html
Optional settings
  • **input_coefficients** : *dict[str, float] | None, optional* The coefficients related to the input variables. If ``None``, use 1 for all the input variables. By default it is set to None. .. raw:: html
  • **input_size** : *int | None, optional* The size of the inputs. If ``None``, the default inputs are initialized with size 1 arrays. By default it is set to None. .. raw:: html
  • **offset** : *float, optional* The output value when all the input variables are equal to zero. By default it is set to 0.0. .. raw:: html
.. _LinearDiscipline_options: LinearDiscipline ---------------- Module: :class:`gemseo.problems.mdo.scalable.linear.linear_discipline` .. raw:: html
Required settings
  • **input_names** : *Sequence[str]* The input data names. .. raw:: html
  • **name** : *str* The discipline name. .. raw:: html
  • **output_names** : *Sequence[str]* The output data names. .. raw:: html
.. raw:: html
Optional settings
  • **inputs_size** : *int, optional* The size of input data vectors, each input data is of shape (inputs_size,). By default it is set to 1. .. raw:: html
  • **matrix_density** : *float, optional* The percentage of non-zero elements when the matrix is sparse. By default it is set to 0.1. .. raw:: html
  • **matrix_format** : *MatrixFormat, optional* The format of the Jacobian matrix. By default it is set to dense. .. raw:: html
  • **matrix_free_jacobian** : *bool, optional* Whether the Jacobians are casted as linear operators. By default it is set to False. .. raw:: html
  • **outputs_size** : *int, optional* The size of output data vectors, each output data is of shape (outputs_size,). By default it is set to 1. .. raw:: html
.. _MDOAdditiveChain_options: MDOAdditiveChain ---------------- Module: :class:`gemseo.core.chains.additive_chain` .. raw:: html
Required settings
  • **disciplines** : *Sequence[Discipline]* The disciplines. .. raw:: html
  • **outputs_to_sum** : *Iterable[str]* The names of the outputs to sum. .. raw:: html
.. raw:: html
Optional settings
  • **n_processes** : *int | None, optional* The maximum simultaneous number of threads, if ``use_threading`` is True, or processes otherwise, used to parallelize the execution. If ``None``, uses the number of disciplines. By default it is set to None. .. raw:: html
  • **name** : *str* The name of the discipline. If ``None``, use the class name. By default it is set to . .. raw:: html
  • **use_threading** : *bool, optional* Whether to use threads instead of processes to parallelize the execution; multiprocessing will copy (serialize) all the disciplines, while threading will share all the memory. This is important to note if you want to execute the same discipline multiple times, you shall use multiprocessing. By default it is set to True. .. raw:: html
.. _MDOChain_options: MDOChain -------- Module: :class:`gemseo.core.chains.chain` .. raw:: html
Required settings
  • **disciplines** : *Sequence[Discipline]* The disciplines. .. raw:: html
.. raw:: html
Optional settings
  • **name** : *str* The name of the discipline. If ``None``, use the class name. By default it is set to . .. raw:: html
.. _MDOInitializationChain_options: MDOInitializationChain ---------------------- Module: :class:`gemseo.core.chains.initialization_chain` .. raw:: html
Required settings
  • **disciplines** : *Sequence[Discipline]* The disciplines. .. raw:: html
.. raw:: html
Optional settings
  • **available_data_names** : *Iterable[str], optional* The data names that are assumed to be available at runtime, in addition to the default_input_data. By default it is set to (). .. raw:: html
  • **name** : *str* The name of the discipline. If ``None``, use the class name. By default it is set to . .. raw:: html
.. _MDOObjectiveScenarioAdapter_options: MDOObjectiveScenarioAdapter --------------------------- Module: :class:`gemseo.disciplines.scenario_adapters.mdo_objective_scenario_adapter` .. raw:: html
Required settings
  • **input_names** : *Sequence[str]* The inputs to overload at sub-scenario execution. .. raw:: html
  • **output_names** : *Sequence[str]* The outputs to get from the sub-scenario execution. .. raw:: html
  • **scenario** : *BaseScenario* The scenario to adapt. .. raw:: html
.. raw:: html
Optional settings
  • **keep_opt_history** : *bool, optional* Whether to keep databases copies after each execution. By default it is set to False. .. raw:: html
  • **name** : *str* The name of the scenario adapter. If empty, use the name of the scenario adapter suffixed by ``"_adapter"``. By default it is set to . .. raw:: html
  • **opt_history_file_prefix** : *str* The base name for the databases to be exported. The full names of the databases are built from the provided base name suffixed by ``"_i.h5"`` where ``i`` is replaced by the execution number, i.e the number of stored databases. If empty, the databases are not exported. The databases can be exported only is ``keep_opt_history=True``. By default it is set to . .. raw:: html
  • **output_multipliers** : *bool, optional* If ``True``, the Lagrange multipliers of the scenario optimal solution are computed and added to the outputs. By default it is set to False. .. raw:: html
  • **reset_x0_before_opt** : *bool, optional* If ``True``, reset the initial guess before running the sub optimization. By default it is set to False. .. raw:: html
  • **scenario_log_level** : *int | None, optional* The level of the root logger during the scenario execution. If ``None``, do not change the level of the root logger. By default it is set to None. .. raw:: html
  • **set_bounds_before_opt** : *bool, optional* If ``True``, set the bounds of the design space. This is useful for trust regions. By default it is set to False. .. raw:: html
  • **set_x0_before_opt** : *bool, optional* If ``True``, set the initial guess of the sub-scenario. This is useful for multi-start optimization. By default it is set to False. .. raw:: html
.. _MDOParallelChain_options: MDOParallelChain ---------------- Module: :class:`gemseo.core.chains.parallel_chain` .. raw:: html
Required settings
  • **disciplines** : *Sequence[Discipline]* The disciplines. .. raw:: html
.. raw:: html
Optional settings
  • **n_processes** : *int | None, optional* The maximum simultaneous number of threads, if ``use_threading`` is True, or processes otherwise, used to parallelize the execution. If ``None``, uses the number of disciplines. By default it is set to None. .. raw:: html
  • **name** : *str* The name of the discipline. If ``None``, use the class name. By default it is set to . .. raw:: html
  • **use_deep_copy** : *bool, optional* Whether to deepcopy the discipline input data. By default it is set to False. .. raw:: html
  • **use_threading** : *bool, optional* Whether to use threads instead of processes to parallelize the execution; multiprocessing will copy (serialize) all the disciplines, while threading will share all the memory. This is important to note if you want to execute the same discipline multiple times, you shall use multiprocessing. By default it is set to True. .. raw:: html
.. _MDOScenarioAdapter_options: MDOScenarioAdapter ------------------ Module: :class:`gemseo.disciplines.scenario_adapters.mdo_scenario_adapter` .. raw:: html
Required settings
  • **input_names** : *Sequence[str]* The inputs to overload at sub-scenario execution. .. raw:: html
  • **output_names** : *Sequence[str]* The outputs to get from the sub-scenario execution. .. raw:: html
  • **scenario** : *BaseScenario* The scenario to adapt. .. raw:: html
.. raw:: html
Optional settings
  • **keep_opt_history** : *bool, optional* Whether to keep databases copies after each execution. By default it is set to False. .. raw:: html
  • **name** : *str* The name of the scenario adapter. If empty, use the name of the scenario adapter suffixed by ``"_adapter"``. By default it is set to . .. raw:: html
  • **opt_history_file_prefix** : *str* The base name for the databases to be exported. The full names of the databases are built from the provided base name suffixed by ``"_i.h5"`` where ``i`` is replaced by the execution number, i.e the number of stored databases. If empty, the databases are not exported. The databases can be exported only is ``keep_opt_history=True``. By default it is set to . .. raw:: html
  • **output_multipliers** : *bool, optional* If ``True``, the Lagrange multipliers of the scenario optimal solution are computed and added to the outputs. By default it is set to False. .. raw:: html
  • **reset_x0_before_opt** : *bool, optional* If ``True``, reset the initial guess before running the sub optimization. By default it is set to False. .. raw:: html
  • **scenario_log_level** : *int | None, optional* The level of the root logger during the scenario execution. If ``None``, do not change the level of the root logger. By default it is set to None. .. raw:: html
  • **set_bounds_before_opt** : *bool, optional* If ``True``, set the bounds of the design space. This is useful for trust regions. By default it is set to False. .. raw:: html
  • **set_x0_before_opt** : *bool, optional* If ``True``, set the initial guess of the sub-scenario. This is useful for multi-start optimization. By default it is set to False. .. raw:: html
.. _MDOWarmStartedChain_options: MDOWarmStartedChain ------------------- Module: :class:`gemseo.core.chains.warm_started_chain` .. raw:: html
Required settings
  • **disciplines** : *Sequence[Discipline]* The disciplines. .. raw:: html
  • **variable_names_to_warm_start** : *Sequence[str]* The names of the variables to be warm started. These names must be outputs of the disciplines in the chain. If the list is empty, no variables are warm started. .. raw:: html
.. raw:: html
Optional settings
  • **name** : *str* The name of the discipline. If ``None``, use the class name. By default it is set to . .. raw:: html
.. _MainDiscipline_options: MainDiscipline -------------- Module: :class:`gemseo.problems.mdo.scalable.parametric.disciplines.main_discipline` .. raw:: html
Required settings
  • **t_i** : *NDArray[float]* The threshold vectors :math:`t_1,\ldots,t_N`. .. raw:: html
.. raw:: html
Optional settings
  • ****default_input_values** : *NDArray[float], optional* The default values of the input variables. .. raw:: html
.. _MaterialModelInterpolation_options: MaterialModelInterpolation -------------------------- Module: :class:`gemseo.problems.topology_optimization.material_model_interpolation_disc` .. raw:: html
Required settings
  • **e0** : *float* The full material Young modulus. .. raw:: html
  • **empty_elements** : *Sequence[int]* The index of an empty element ids that are not part of the design space. .. raw:: html
  • **full_elements** : *Sequence[int]* The index of full element ids that are not part of the design space. .. raw:: html
  • **n_x** : *int* The number of elements in the x-direction. .. raw:: html
  • **n_y** : *int* The number of elements in the y-direction. .. raw:: html
  • **penalty** : *float* The SIMP penalty coefficient. .. raw:: html
.. raw:: html
Optional settings
  • **contrast** : *float, optional* The ratio between the full material Young's modulus and void material Young's modulus. By default it is set to 1000000000.0. .. raw:: html
.. _Mission_options: Mission ------- Module: :class:`gemseo.problems.mdo.aerostructure.aerostructure` .. raw:: html
Optional settings
  • **lift_val** : *float, optional* The threshold to compute the lift constraint. By default it is set to 0.5. .. raw:: html
  • **r_val** : *float, optional* The threshold to compute the reserve factor constraint. By default it is set to 0.5. .. raw:: html
.. _ODEDiscipline_options: ODEDiscipline ------------- Module: :class:`gemseo.disciplines.ode.ode_discipline` .. raw:: html
Required settings
  • **discipline** : *Discipline* The discipline defining the right-hand side function of the ODE. .. raw:: html
  • **times** : *ArrayLike* Either the initial and final times or the times of interest where the state must be stored, including the initial and final times. When only initial and final times are provided, the times of interest are the instants chosen by the ODE solver to compute the state trajectories. .. raw:: html
.. raw:: html
Optional settings
  • **final_state_names** : *Mapping[str, str], optional* The names of the state variables bound to their names at final time. If empty, use ``state_name_final`` for a state variable named ``state_name``. By default it is set to {}. .. raw:: html
  • **name** : *str* The name of the discipline. If empty, use the name of the class. By default it is set to . .. raw:: html
  • **ode_solver_name** : *str, optional* The name of the ODE solver. By default it is set to RK45. .. raw:: html
  • **return_trajectories** : *bool, optional* Whether to output both the trajectories of the state variables and their values at final time. Otherwise, output only their values at final time. By default it is set to False. .. raw:: html
  • **solve_at_algorithm_times** : *bool | None, optional* Whether to solve the ODE chosen by the algorithm. Otherwise, use times defined in the vector `times`. If ``None``, it is initialized as ``False`` if no terminal event is considered, and ``True`` otherwise. By default it is set to None. .. raw:: html
  • **state_names** : *Iterable[str] | Mapping[str, str], optional* Either the names of the state variables, passed as ``(state_name, ...)``, or the names of the state variables bound to the associated discipline outputs, passed as ``{state_name: output_name, ...}``. If empty, use all the discipline inputs. By default it is set to (). .. raw:: html
  • **state_trajectory_names** : *Mapping[str, str], optional* The names of the state variables bound to the names of their trajectories. If empty, use ``state_name_trajectory`` for a state variable named ``state_name``. By default it is set to {}. .. raw:: html
  • **termination_event_disciplines** : *Iterable[Discipline], optional* The disciplines encoding termination events. Each discipline must have the same inputs as ``discipline`` and only one output defined as an arrays of size 1 indicating the value of an event function. The resolution of the ODE problem stops when one of the event functions crosses the threshold 0. If empty, the integration covers the entire time interval. By default it is set to (). .. raw:: html
  • **time_name** : *str, optional* The name of the time variable. By default it is set to time. .. raw:: html
  • ****ode_solver_settings** : *Any, optional* The settings of the ODE solver. .. raw:: html
.. _OscillatorDiscipline_options: OscillatorDiscipline -------------------- Module: :class:`gemseo.problems.ode.oscillator_discipline` .. raw:: html
Required settings
  • **omega** : *float* The positive angular velocity of the oscillator. .. raw:: html
  • **times** : *RealArray* Either the initial and final times or the times of interest where the state must be stored, including the initial and final times. When only initial and final times are provided, the times of interest are the instants chosen by the ODE solver to compute the state trajectories. .. raw:: html
.. raw:: html
Optional settings
  • **final_state_names** : *Mapping[str, str], optional* The names of the state variables bound to their names at final time. If empty, use ``state_name_final`` for a state variable named ``state_name``. By default it is set to {}. .. raw:: html
  • **return_trajectories** : *bool, optional* Whether to output both the trajectories of the state variables and their values at final time. Otherwise, output only their values at final time. By default it is set to False. .. raw:: html
.. _PropaneComb1_options: PropaneComb1 ------------ Module: :class:`gemseo.problems.mdo.propane.propane` .. _PropaneComb2_options: PropaneComb2 ------------ Module: :class:`gemseo.problems.mdo.propane.propane` .. _PropaneComb3_options: PropaneComb3 ------------ Module: :class:`gemseo.problems.mdo.propane.propane` .. _PropaneReaction_options: PropaneReaction --------------- Module: :class:`gemseo.problems.mdo.propane.propane` .. _RemappingDiscipline_options: RemappingDiscipline ------------------- Module: :class:`gemseo.disciplines.remapping` .. raw:: html
Required settings
  • **discipline** : *Discipline* The original discipline. .. raw:: html
.. raw:: html
Optional settings
  • **input_mapping** : *NameMapping, optional* The input names to the original input names. By default it is set to {}. .. raw:: html
  • **output_mapping** : *NameMapping, optional* The output names to the original output names. By default it is set to {}. .. raw:: html
.. _RosenMF_options: RosenMF ------- Module: :class:`gemseo.problems.optimization.rosen_mf` .. raw:: html
Optional settings
  • **dimension** : *int, optional* The dimension of the design space. By default it is set to 2. .. raw:: html
.. _SLURM_options: SLURM ----- Module: :class:`gemseo.disciplines.wrappers.job_schedulers.slurm` .. raw:: html
Required settings
  • **discipline** : *Discipline* The discipline to wrap in the job scheduler. .. raw:: html
  • **workdir_path** : *Path* The path to the workdir where the files will be generated. .. raw:: html
.. raw:: html
Optional settings
  • **cpus_per_task** : *int, optional* The number of CPUS per task. By default it is set to 1. .. raw:: html
  • **job_out_filename** : *str, optional* The output job file name. By default it is set to batch.sh. .. raw:: html
  • **job_template_path** : *Path | str | None, optional* The path to the template to be used to make a submission to the job scheduler command. By default it is set to None. .. raw:: html
  • **mem_per_cpu** : *str, optional* The memory per CPU. By default it is set to 1G. .. raw:: html
  • **nodes_number** : *int, optional* The number nodes. By default it is set to 1. .. raw:: html
  • **ntasks** : *int, optional* The number of tasks. By default it is set to 1. .. raw:: html
  • **ntasks_per_node** : *int, optional* The number of tasks per node. By default it is set to 1. .. raw:: html
  • **scheduler_run_command** : *str, optional* The command to call the job scheduler and submit the generated script. By default it is set to sbatch --wait. .. raw:: html
  • **setup_cmd** : *str* The command used before running the executable. By default it is set to . .. raw:: html
  • **use_template** : *bool, optional* whether to use template based interface to the job scheduler. By default it is set to True. .. raw:: html
  • **user_email** : *str* The user email to send the run status. By default it is set to . .. raw:: html
  • **wall_time** : *str, optional* The wall time. By default it is set to 24:00:00. .. raw:: html
  • ****options** : *dict[str:Any], optional* The job scheduler specific options to be used in the template. .. raw:: html
.. _ScalableDiscipline_options: ScalableDiscipline ------------------ Module: :class:`gemseo.problems.mdo.scalable.data_driven.discipline` .. raw:: html
Required settings
  • **data** : *IODataset* The learning dataset. .. raw:: html
  • **name** : *str* The name of the class of the scalable model. .. raw:: html
.. raw:: html
Optional settings
  • **sizes** : *Mapping[str, int], optional* The sizes of the input and output variables. If empty, use the original sizes. By default it is set to {}. .. raw:: html
  • ****parameters** : *Any, optional* The parameters for the model. .. raw:: html
.. _Sellar1_options: Sellar1 ------- Module: :class:`gemseo.problems.mdo.sellar.sellar_1` .. raw:: html
Optional settings
  • **k** : *float, optional* The shared coefficient controlling the coupling strength. By default it is set to 1.0. .. raw:: html
  • **n** : *int, optional* The size of the local design variables and coupling variables. By default it is set to 1. .. raw:: html
.. _Sellar2_options: Sellar2 ------- Module: :class:`gemseo.problems.mdo.sellar.sellar_2` .. raw:: html
Optional settings
  • **k** : *float, optional* The shared coefficient controlling the coupling strength By default it is set to 1.0. .. raw:: html
  • **n** : *int, optional* The size of the local design variables and coupling variables. By default it is set to 1. .. raw:: html
.. _SellarSystem_options: SellarSystem ------------ Module: :class:`gemseo.problems.mdo.sellar.sellar_system` .. raw:: html
Optional settings
  • **n** : *int, optional* The size of the local design variables and coupling variables. By default it is set to 1. .. raw:: html
.. _SobieskiAerodynamics_options: SobieskiAerodynamics -------------------- Module: :class:`gemseo.problems.mdo.sobieski.disciplines` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The data type for the NumPy arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
.. _SobieskiAerodynamicsSG_options: SobieskiAerodynamicsSG ---------------------- Module: :class:`gemseo.problems.mdo.sobieski._disciplines_sg` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The data type for the NumPy arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
.. _SobieskiChain_options: SobieskiChain ------------- Module: :class:`gemseo.problems.mdo.sobieski.process.mdo_chain` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The NumPy type for data arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
.. _SobieskiMDAGaussSeidel_options: SobieskiMDAGaussSeidel ---------------------- Module: :class:`gemseo.problems.mdo.sobieski.process.mda_gauss_seidel` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The NumPy type for data arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
  • **settings_model** : *MDAGaussSeidel_Settings | None, optional* The MDA settings as a Pydantic model. If ``None``, use ``**settings``. By default it is set to None. .. raw:: html
  • ****settings** : *Any, optional* The settings of the MDA. .. raw:: html
.. _SobieskiMDAJacobi_options: SobieskiMDAJacobi ----------------- Module: :class:`gemseo.problems.mdo.sobieski.process.mda_jacobi` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The NumPy type for data arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
  • ****settings** : *Any, optional* The settings of the MDA. .. raw:: html
.. _SobieskiMission_options: SobieskiMission --------------- Module: :class:`gemseo.problems.mdo.sobieski.disciplines` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The data type for the NumPy arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
  • **enable_delay** : *bool | float, optional* If ``True``, wait one second before computation. If a positive number, wait the corresponding number of seconds. If ``False``, compute directly. By default it is set to False. .. raw:: html
.. _SobieskiMissionSG_options: SobieskiMissionSG ----------------- Module: :class:`gemseo.problems.mdo.sobieski._disciplines_sg` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The data type for the NumPy arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
.. _SobieskiPropulsion_options: SobieskiPropulsion ------------------ Module: :class:`gemseo.problems.mdo.sobieski.disciplines` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The data type for the NumPy arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
.. _SobieskiPropulsionSG_options: SobieskiPropulsionSG -------------------- Module: :class:`gemseo.problems.mdo.sobieski._disciplines_sg` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The data type for the NumPy arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
.. _SobieskiStructure_options: SobieskiStructure ----------------- Module: :class:`gemseo.problems.mdo.sobieski.disciplines` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The data type for the NumPy arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
.. _SobieskiStructureSG_options: SobieskiStructureSG ------------------- Module: :class:`gemseo.problems.mdo.sobieski._disciplines_sg` .. raw:: html
Optional settings
  • **dtype** : *SobieskiBase.DataType, optional* The data type for the NumPy arrays, either "float64" or "complex128". By default it is set to float64. .. raw:: html
.. _Splitter_options: Splitter -------- Module: :class:`gemseo.disciplines.splitter` .. raw:: html
Required settings
  • **input_name** : *str* The name of the input to split. .. raw:: html
  • **output_names_to_input_indices** : *dict[str, Iterable[int] | int]* The input indices associated with the output names. .. raw:: html
.. _Structure_options: Structure --------- Module: :class:`gemseo.problems.mdo.aerostructure.aerostructure` .. _SurrogateDiscipline_options: SurrogateDiscipline ------------------- Module: :class:`gemseo.disciplines.surrogate` .. raw:: html
Required settings
  • **surrogate** : *str | BaseRegressor* Either the name of a subclass of :class:`.BaseRegressor` or an instance of this subclass. .. raw:: html
.. raw:: html
Optional settings
  • **data** : *IODataset | None, optional* The learning dataset to train the regression model. If ``None``, the regression model is supposed to be trained. By default it is set to None. .. raw:: html
  • **default_input_data** : *dict[str, ndarray], optional* The default values of the input variables. If empty, use the center of the learning input space. By default it is set to {}. .. raw:: html
  • **disc_name** : *str* The name to be given to the surrogate discipline. If empty, the name will be ``f"{surrogate.SHORT_ALGO_NAME}_{data.name}``. By default it is set to . .. raw:: html
  • **input_names** : *Iterable[str], optional* The names of the input variables. If empty, consider all input variables mentioned in the learning dataset. By default it is set to (). .. raw:: html
  • **output_names** : *Iterable[str], optional* The names of the output variables. If empty, consider all input variables mentioned in the learning dataset. By default it is set to (). .. raw:: html
  • **transformer** : *TransformerType, optional* The strategies to transform the variables. This argument is ignored when ``surrogate`` is a :class:`.BaseRegressor`; in this case, these strategies are defined with the ``transformer`` argument of this :class:`.BaseRegressor`, whose default value is :attr:`.BaseMLAlgo.IDENTITY`, which means no transformation. In the other cases, the values of the dictionary are instances of :class:`.BaseTransformer` while the keys can be variable names, the group name ``"inputs"`` or the group name ``"outputs"``. If a group name is specified, the :class:`.BaseTransformer` will be applied to all the variables of this group. If :attr:`.BaseMLAlgo.IDENTITY`, do not transform the variables. The :attr:`.BaseRegressor.DEFAULT_TRANSFORMER` uses the :class:`.MinMaxScaler` strategy for both input and output variables. By default it is set to {'inputs': , 'outputs': }. .. raw:: html
  • ****settings** : *MLAlgoSettingsType, optional* The settings of the machine learning algorithm. .. raw:: html
.. _TaylorDiscipline_options: TaylorDiscipline ---------------- Module: :class:`gemseo.disciplines.taylor` .. raw:: html
Required settings
  • **discipline** : *Discipline* The discipline to be approximated by a Taylor polynomial. .. raw:: html
.. raw:: html
Optional settings
  • **input_data** : *Mapping[str, NDArray[float]], optional* The point of expansion. If empty, use the default inputs of ``discipline``. By default it is set to {}. .. raw:: html
  • **name** : *str* The name of the discipline. If empty, use the name of the class. By default it is set to . .. raw:: html
.. _VolumeFraction_options: VolumeFraction -------------- Module: :class:`gemseo.problems.topology_optimization.volume_fraction_disc` .. raw:: html
Optional settings
  • **empty_elements** : *Sequence[int] | None, optional* The index of the empty element ids that are not part of the design space. By default it is set to None. .. raw:: html
  • **full_elements** : *Sequence[int] | None, optional* The index of the full element ids that are not part of the design space. By default it is set to None. .. raw:: html
  • **n_x** : *int, optional* The number of elements in the x-direction. By default it is set to 100. .. raw:: html
  • **n_y** : *int, optional* The number of elements in the y-direction. By default it is set to 100. .. raw:: html
  • **name** : *str* The name of the discipline. If empty, use the name of the class. By default it is set to . .. raw:: html
.. _XLSDiscipline_options: XLSDiscipline ------------- Module: :class:`gemseo.disciplines.wrappers.xls_discipline` .. raw:: html
Required settings
  • **xls_file_path** : *Path | str* The path to the Excel file. If the file is a XLSM, a macro named "execute" must exist and will be called by the :meth:`~.XLSDiscipline._run` method before retrieving the outputs. .. raw:: html
.. raw:: html
Optional settings
  • **copy_xls_at_setstate** : *bool, optional* If ``True``, create a copy of the original Excel file for each of the pickled parallel processes. This option is required to be set to ``True`` for parallelization in Windows platforms. By default it is set to False. .. raw:: html
  • **macro_name** : *str | None, optional* The name of the macro to be executed for a XLSM file. If ``None`` is provided, do not run a macro. By default it is set to execute. .. raw:: html
  • **name** : *str* The name of the discipline. If empty, use the name of the class. By default it is set to . .. raw:: html
  • **recreate_book_at_run** : *bool, optional* Whether to rebuild the xls objects at each ``_run`` call. By default it is set to False. .. raw:: html