I have some difficults with calibraton code of basinhopping by using (L-BFGS-B) method, i tried many codes but i didn't success every time give me 8 numbers after comma like that
(5.00000001 , 1.0000001, 5.00545111)
I would like just three numbers after cumma if that possible like that :
(5.001, 1.005, 5.003)
i use this code:
def opt(x0):
bd0 = (0,100)
bd1 = (0,0.100)
bd2 = (2,8)
bnds = (bd0, bd1, bd2)
minimizer_kwargs = {"method":"L-BFGS-B", "bounds":bnds, "tol":1e0}
res = basinhopping(rmse, x0, minimizer_kwargs=minimizer_kwargs,T=1.0, stepsize=1.0, niter=10)
print(res.x)