blackbox

blackbox(func: Callable[[_Param], Any]) BlackBoxFuncBase[_Param]

Wraps a function into a black-box function class.

Parameters:

func (Callable[_Param, Any]) – The function to wrap.

Raises:
  • ValueError – If the same variable is already specified.

  • ValueError – If an empty variable list is specified.

Returns:

The wrapped black-box function.

Return type:

BlackBoxFuncBase[_Param]