optimagic-dev / optimagic

optimagic is a Python package for numerical optimization. It is a unified interface to optimizers from SciPy, NlOpt and other packages. optimagic's minimize function works just like SciPy's, so you don't have to adjust your code. You simply get more optimizers for free. On top you get diagnostic tools, parallel numerical derivatives and more.
https://optimagic.readthedocs.io/
MIT License
270 stars 30 forks source link

Update constraint interface #522

Closed timmens closed 3 months ago

timmens commented 3 months ago

Update constraints interface according to EEP-02 (changes described here)

review-notebook-app[bot] commented 3 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 88.94472% with 22 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/optimagic/constraints.py 85.31% 21 Missing :warning:
...imagic/optimization/create_optimization_problem.py 75.00% 1 Missing :warning:
Files with missing lines Coverage Δ
src/estimagic/estimate_ml.py 82.47% <100.00%> (+0.07%) :arrow_up:
src/estimagic/estimate_msm.py 89.68% <100.00%> (+0.43%) :arrow_up:
src/optimagic/__init__.py 100.00% <100.00%> (+8.69%) :arrow_up:
src/optimagic/deprecations.py 100.00% <100.00%> (ø)
src/optimagic/optimization/optimize.py 91.26% <ø> (-0.17%) :arrow_down:
src/optimagic/parameters/constraint_tools.py 100.00% <100.00%> (ø)
src/optimagic/parameters/process_constraints.py 96.49% <100.00%> (ø)
src/optimagic/shared/process_user_function.py 98.52% <ø> (ø)
...imagic/optimization/create_optimization_problem.py 86.16% <75.00%> (+0.12%) :arrow_up:
src/optimagic/constraints.py 85.31% <85.31%> (ø)

... and 2 files with indirect coverage changes