Python, scipy, curve_fit, bounds: How can I contstraint param by two intervals?
<p>I`m using scipy.optimize.curve_fit for fitting a sigmoidal curve to data. I need to bound one of parammeters from [-3, 0.5] and [0.5, 3.0]</p>

<p>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]</p>

<p>Is it possible, to bound function curve_fit with two intervals?</p>

<p>No, least_squares (hence curve_fit) only supports box constraints.</p>

python scipy curve-fitting