gemseo.core.mdo_functions.restricted_function module#
Function restricted to a subset of input components.
- class RestrictedFunction(function, restriction_indices, restriction_values)[source]#
Bases:
MDOFunctionFunction restricted to a subset of input components.
The rest of the input component are fixed.
- Parameters:
function (MDOFunction) -- The original function to restrict.
restriction_indices (IntegerArray) -- The indices array of the input vector to fix.
restriction_values (RealArray) -- The values of the input vector at the restriction indices.
- Raises:
ValueError -- If the shape of the restriction values is not consistent with the shape of the restriction indices.
- restriction_values: RealArray#
The values of the input vector at the restriction indices.