rfeinman / pytorch-minimize

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

Supports constrained minimization with constraint function with constant gradient #23

Closed calvinmccarter closed 1 year ago

calvinmccarter commented 1 year ago

Resolves #22 and adds testing for minimize_constr

rfeinman commented 1 year ago

Thanks for the PR!

There's an open discussion about the right behavior for a situation like this (see https://github.com/pytorch/pytorch/issues/73137) but I'm going to merge your solution for now.