gemseo.algos.design_space_utils module#
Design space helpers.
- get_value_and_bounds(design_space: DesignSpace, normalize_ds: bool, as_dict: Literal[False] = False) tuple[ndarray, ndarray, ndarray] [source]#
- get_value_and_bounds(design_space: DesignSpace, normalize_ds: bool, as_dict: Literal[True] = True) tuple[dict[str, ndarray], dict[str, ndarray], dict[str, ndarray]]
Return the design variable values and their lower and upper bounds.
- Parameters:
design_space -- The design space.
normalize_ds -- Whether to normalize the design variables.
as_dict -- Whether to return dictionaries instead of NumPy arrays.
- Returns:
The values of the design variables, their lower bounds, and their upper bounds.