raise ValueError("Optimisation bounds must be scalars" ValueError: Optimisation bounds must be scalars or array scalars.