cbx.utils.objective_handling.cbx_objective#

class cbx.utils.objective_handling.cbx_objective(f_extra=None)[source]#

Bases: object

__call__(x)[source]#

Applies the objective function to the input x and counts th number of evaluations.

Parameters:

x – The input to the objective function.

Return type:

The output of the objective function.