rfeinman / pytorch-minimize

Newton and Quasi-Newton optimization with PyTorch
https://pytorch-minimize.readthedocs.io
MIT License
292 stars 34 forks source link

Bux fix #19

Closed dudifrid closed 1 year ago

dudifrid commented 1 year ago

According to the scipy docs, the method ‘trust-constr’ requires different callback signature. Hence, supplying 'minimize_constr' with a callback raised an error before this bug fix.

rfeinman commented 1 year ago

Thanks for catching this!