blackboxΒΆ

blackbox(func: Callable) BlackBoxFuncBaseΒΆ

Decorator function to create a black-box objective function class instance.

Parameters:

func (Callable) – A black-box objective function.

Raises:

ValueError – If decision variables are not appropriately set for the input arguments to a black-box function.

Returns:

A black-box function class instance which associates a black-box function and decision variables.

Return type:

BlackBoxFunc