[Scilab-users] nonlinear system of equations underdetermined

CRETE Denis denis.crete at thalesgroup.com
Fri Aug 25 14:19:51 CEST 2017


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.4379588    0.3182792    1.3335215 ]
// Fct4(ans)=[ 0.0000032 ; -0.0000158; 0.0000029];

//  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-bounces at lists.scilab.org] De la part de Hermes
Envoyé : vendredi 25 août 2017 11:53
À : users at 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  fn<xn

'f(1) = x(1)^2 +(x(2)+1)^2 + (x(3)-0.5)^2 - r^2';
'f(2) = x(1)-0.5*x(2)+0.5*x(3)' ;
'f(3) = (x(1)-x(4))^2 +( x(2)-x(5))^2 +(x(3)-x(6))^2-19';  'f(4)=sin(x(4))-x(5)';
'f(5)=sin(2*x(4))-x(6)'])

Gracias





--
View this message in context: http://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 at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list