You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e.g. for SciPy's L-BFGS-B using a (non $l^2$) Riesz map will lead to the derivative being supplied to the optimizer being inconsistent. SciPy requires the (non-mapped) derivative.
The text was updated successfully, but these errors were encountered:
Yes, I agree. This was the key reasons I considered adding the derivative option to the minimize. The default Riesz representation in Firedrake is L2, and without the PR 151, we were not able to use SciPy's minimisation with l2 riesz representation because there was no way to set it. I am just thinking why the test is working with scipy using L2.
minimize could access the adjoint variable directly, i.e. use derivative to run the adjoint, but then ignore it's return value and access the Control.block_variable.adj_value directly. That would still cost an extra mass matrix solve but would work without needing to know Firedrake-specific Riesz map parameters.
e.g. for SciPy's L-BFGS-B using a (non$l^2$ ) Riesz map will lead to the derivative being supplied to the optimizer being inconsistent. SciPy requires the (non-mapped) derivative.
The text was updated successfully, but these errors were encountered: