res = minimize(objective_function, x0, constraints=con,bounds=bnds, method='SLSQP',options=opt)