jfowkes / pycutest

Python interface to CUTEst
https://jfowkes.github.io/pycutest/
GNU General Public License v3.0
27 stars 10 forks source link

Add access to constrained gradient only #71

Closed jfowkes closed 7 months ago

jfowkes commented 7 months ago

@lindonroberts this PR improves upon #69 by also adding access to the constrained gradient. This brings our interface in-line with the official CUTEst MATLAB interface: https://github.com/ralna/CUTEst/tree/master/src/matlab

lindonroberts commented 7 months ago

Thanks @jfowkes, this is nice to add! In terms of the changes, the docstring at the top of problem_class.grad() still has a line "For constrained problems, this raises a RuntimeError." which I think should be removed (unless it's referring to if the index optional input is mis-specified, e.g. negative or >= number of constraints). Otherwise it looks good to me

jfowkes commented 7 months ago

Thanks @lindonroberts, good catch with the docstring! Now fixed.