Hello,
f(4) and f(5) having trivial solutions, I plugged this into f(3) to reduce the
dimension of the space to 4:
deff('f = Fct4(x,r)','f=[..
x(1)^2+(x(2)+1)^2+(x(3)-0.5)^2-r^2;..
x(1)-0.5*x(2)+0.5*x(3);..
(x(1)-x(4))^2+(x(2)-sin(x(4)))^2+(x(3)-sin(2*x(4)))^2-19]');
deff('e=H(x,r)','e=norm(Fct4(x,r))');
// I picked some value for 'r'
r=2;
// With fminsearch, we need a starting point ( e.g. [0,0,0,0])
fminsearch(list(H,r),zeros(1,4))
// ans =[ -1.3781348 -2.43795880.31827921.3335215 ]
// Fct4(ans)=[ 0.032 ; -0.158; 0.029];
// Note: with 6 dimensions (and minimizing norm(Fct6), when starting from
zeros(1,6)...) fminsearch did not converge
HTH
Denis
-Message d'origine-
De : users [mailto:users-boun...@lists.scilab.org] De la part de Hermes
Envoyé : vendredi 25 août 2017 11:53
À : users@lists.scilab.org
Objet : Re: [Scilab-users] nonlinear system of equations underdetermined
My apologies run enter before editing. This is the system of interest:
the nonlinear system of equations underdetermined fnhttp://mailinglists.scilab.org/nonlinear-system-of-equations-underdetermined-tp4036921p4036922.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users