When doing (ad hoc example)
from scipy import optimize def fit_func(x, a, b): return a*x + b optimize.curve_fit(fit_func, x_data, y_data) how can I put bounds like a>b? I know the option bounds, but it appears it does accept only explicit numbers.
Maybe some if in the definition of fit_func?