gemseo.utils.global_configuration module#

Global GEMSEO configuration.

Settings GlobalConfiguration[source]#

Bases: BaseSettings

Global configuration.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

check_desvars_bounds: bool = True#

Whether to check the membership of design variables in the bounds when evaluating the functions in OptimizationProblem.

enable_discipline_cache: bool = True#

Whether to enable the discipline cache.

enable_discipline_statistics: bool = False#

Whether to record execution statistics of the disciplines such as the execution time, the number of executions and the number of linearizations.

enable_discipline_status: bool = False#

Whether to enable discipline statuses.

enable_function_statistics: bool = False#

Whether to record the statistics attached to the functions, in charge of counting their number of evaluations.

enable_parallel_execution: bool = True#

Whether to let GEMSEO use parallelism (multi-processing or multi-threading) by default.

enable_progress_bar: bool = True#

Whether to enable the progress bar attached to the drivers, in charge to log the execution of the process: iteration, execution time and objective value.

fast: bool = False#

Use a global configuration for inexpensive disciplines.

This global configuration disables the following options:

  • check_desvars_bounds,

  • enable_discipline_cache,

  • enable_discipline_statistics,

  • enable_discipline_status,

  • enable_parallel_execution,

  • validate_input_data,

  • validate_output_data.

logging: LoggingConfiguration = LoggingConfiguration(date_format='%H:%M:%S', enable=True, file_path='', file_mode='a', level=20, message_format='%(levelname)8s - %(asctime)s: %(message)s')#

The logging configuration.

validate_input_data: bool = True#

Whether to validate the input data of a discipline before execution.

validate_output_data: bool = True#

Whether to validate the output data of a discipline after execution.