cooper-org / cooper

A general-purpose, deep learning-first library for constrained optimization in PyTorch
https://cooper.readthedocs.io/
MIT License
106 stars 10 forks source link

Implement Damped Lagrangian Formulation #93

Open lucas-maes opened 3 months ago

lucas-maes commented 3 months ago

Changes

Hi 👋, I've implemented the Damped Lagrangian Formulation to enhance the stability of the optimization process by addressing oscillatory behaviors when constraints are suddenly satisfied or violated. This involves:

Testing

Added tests in test_lagrangian_formulation.py to ensure:

References