Python, scipy, curve_fit, bounds: How can I constraint param by two intervals?
No, least_squares (hence curve_fit) only supports box constraints.
I`m using scipy.optimize.curve_fit for fitting a sigmoidal curve to data. I need to bound one of parameters from [-3, 0.5] and [0.5, 3.0]
I tried fit curve without bounds, and next if parameter is lower than zero, I fit once more with bounds [-3, 0.5] and in contrary  with[0.5, 3.0]
Is it possible, to bound function curve_fit with two intervals?