SciPy - Advanced Optimization
What will be the value of
result.success after running this code?from scipy.optimize import minimize
obj = lambda x: x[0]**2 + x[1]**2
cons = [{'type': 'eq', 'fun': lambda x: x[0] - 1}, {'type': 'ineq', 'fun': lambda x: x[1] - 1}]
result = minimize(obj, [0, 0], constraints=cons)
print(result.success)