Currenly the argument list in polonsky and keer is:
def constrained_conjugate_gradients(fun, hessp, x0, gtol=1e-8,
mean_value=None, residual_plot=False,
maxiter=5000):
"""
fun : callable.
The objective function to be minimized.
fun(x) -> float(energy),ndarray(gradient)
.....
"""
This is made to match the scipy interface.
But I find it a bit stupid because the energy is never used.
Currenly the argument list in polonsky and keer is:
This is made to match the scipy interface.
But I find it a bit stupid because the energy is never used.
We should probably also allow for: