Is your feature request related to a problem? Please describe. This follows on from a separate issue #23503 in which this question was touched upon. I thought I'd pull all the relevant comments into ...
.venv/lib/python3.12/site-packages/scipy/optimize/_differentiable_functions.py:376: UserWarning: delta_grad == 0.0. Check if the approximated function is linear. If ...