pysolvegn.build_batch_fixed_parametrization#
- build_batch_fixed_parametrization(n_p_outputs, optimized_indices, fixed_parameters=None)[source]#
Build a
BatchParametrizationthat fixes some output parameters while optimizing only a selected subset of them (batched counterpart ofbuild_fixed_parametrization()).The same parameters are fixed, at the same values, for all the problems of the batch.
- Parameters:
n_p_outputs (int) – Number of output parameters.
optimized_indices (Sequence[int]) – Indices of the output parameters that are optimized. The order defines the order of the input parameters.
fixed_parameters (Optional[ArrayLike], optional) – Initial/fixed values of all output parameters, with shape
(n_p_outputs,). IfNone, all fixed parameters are initialized to zero.
- Returns:
The resulting parametrization:
(m, len(optimized_indices)) -> (m, n_p_outputs).- Return type: