|
"Josh1640 Sunder" <giaqui182@libero.it> wrote in message <gnmkdb$1jk$1@fred.mathworks.com>...
> Good morning,
> When i try to solve the sistem i linked below i get an error message (and wrong solutions obviously).
> I'd like to have some help in solving this equation system:
>
> http://www.drl-guild.com/borzuk/myfuntry.zip
>
> I dont understand what's wrong in it.
> Thanks for attention
Hi,
Try to add the jacobian matrix of your system in your function:
function [F,J] = myfun(x)
F = ... % objective function values at x
if nargout > 1 % two output arguments
J = ... % Jacobian of the function evaluated at x
end
It might help the solver to find a more appropriate search direction so as to decrease the gradient.
Regards,
Vincent
|