User defined Jacobian in MATLAB's lsqnonlin
When using MATLAB's lsqnonlin function, I am trying to give a user-defined Jacobian matrix, as described in the documentation.
The output of the objective function used in lsqnonlin should be a vector of unsquared values, which, when squared and summed, give the en开发者_运维技巧ergy. However, should the Jacobian be the partial derivates of the squared or unsquared values?
The unsquared values is correct.
精彩评论