in this link : https://scikit-optimize.github.io/stable/modules/generated/skopt.dummy_minimize.html
skopt.dummy_minimize:
funccallable
Function to minimize. Should take a single list of parameters and return the objective value.
def black_box_function(x_and_y):
return -x_and_y[0] + 2 - (x_and_y[1] - 1) ** 2 + 1
i think this will solve your problem