cbx.utils.objective_handling.cbx_objective_fh#

class cbx.utils.objective_handling.cbx_objective_fh(f)[source]#

Bases: cbx_objective

Creates a cbx_objective from a function handle.

apply(x)[source]#

Applies the function f to the input x.

Parameters:

x – The input to the function.

Return type:

The output of the function.