3

Following up on my comment on the original question, I have finally managed to construct a counter example that shows that the statement is not in fact correct. Define the positive part of a function, $$ [x]^+ = \begin{cases}x & \text{if $x\ge 0$} \\ 0 & \text{otherwise.}\end{cases} $$ The let $$ \sigma_1(y) = 1+ \left[\tfrac 14 - |y-1|\right]^+ $...


2

For the first question, the values are stored in the members of the minimo object. Explicitly print(minimo.success) print(minimo.x) For the second part of the question as to how to setup bounds, import scipy.optimize as so from scipy.optimize import Bounds import numpy as np my_bounds = Bounds(0,np.inf) def func_AC(r): return 1/((r[0]**2)+1) guess ...


Only top voted, non community-wiki answers of a minimum length are eligible