I am using SciPy 0.10.1 and the following code stops at Inequality constraints incompatible (Exit mode 4) error. Can I avoid it? I suspect that the error is connected with bounds, because it works without them. Thank you.
func=lambda x: sum((x[i] - upper_bounds[i])**2 for i in xrange(4)),
fprime=lambda x: [2 * (x[i] - upper_bounds[i]) for i in xrange(4)],
bounds=[(0, b) for b in upper_bounds],