pytorch-minimize icon indicating copy to clipboard operation
pytorch-minimize copied to clipboard

implement bounded least_squares

Open Dan-Burns opened this issue 1 year ago • 3 comments

Hello,

I'm trying to use least_squares and got the following error.

NotImplementedError Traceback (most recent call last) in ----> 1 jac0=least_squares(chi2, 2 par_theta, 3 bounds=bounds, 4 ftol=10^-5,xtol=10^-7) 5 par=jac0.x

1 frames /usr/local/lib/python3.9/site-packages/torchmin/lstsq/trf.py in trf(fun, x0, f0, lb, ub, ftol, xtol, gtol, max_nfev, x_scale, tr_solver, tr_options, verbose) 27 tr_solver, tr_options, verbose) 28 else: ---> 29 raise NotImplementedError('trf with bounds not currently supported.') 30 31

NotImplementedError: trf with bounds not currently supported.

Dan-Burns avatar Mar 23 '23 18:03 Dan-Burns

Hi @Dan-Burns - bounded least squares is not yet implemented. I have my hands full at the moment but if you'd like to contribute an implementation I'd be happy to review a PR.

rfeinman avatar Mar 23 '23 19:03 rfeinman

Hi, I was wondering if the bounded least squares is already available or work is still going on. Thanks!

JordinaAviles avatar Jun 21 '23 16:06 JordinaAviles

@JordinaAviles unfortunately I have not had time to implement this, but I'd be open to a PR if you'd like to contribute. Help is much needed and greatly appreciated!

rfeinman avatar Jun 29 '23 18:06 rfeinman