It is necessary to minimize the function depending on two variables using the Nelder-Mead algorithm. The documentation says ( link ) that you can specify xtol in the options of this function, but it is accepted as a float .
How to specify xtol for each of two variable variables, besides, that they have a different order? I tried to write the form 'xtol':[1,0.01] - swears. Code:
import Residual_calc as res_c from scipy.optimize import minimize var_ar0=[25,1.0]; var_ar_min=minimize(res_c.x_extr_res,var_ar0,(),'Nelder-Mead',options={'disp':True,'maxiter':10});