I have a system of equations as given following:
z=[3,7,10,27,30,42.......N];
p=[10.2,8.7,7.1,6.4,3.2,2..... N];
PROBLEM: ((x1*x2)+x2-(x3*x4)+z(1))/((x1-x2)*z(1)+(x3*x4))=p(1);
((x1*x2)+x2-(x3*x4)+z(2))/((x1-x2)*z(2)+(x3*x4))=p(2);
((x1*x2)+x2-(x3*x4)+z(3))/((x1-x2)*z(3)+(x3*x4))=p(3);
....
....
((x1*x2)+x2-(x3*x4)+z(N))/((x1-x2)*z(N)+(x3*x4))=p(N);
Where N is the number of equations and always more than unknowns.
How can I use a genetic algorithm to solve this problem? As I saw in MATLAB help, a command is given like that:
[x,fval,exitflag,output] = ga(fitnessfcn,nvars,A,b,Aeq,beq,LB,UB,nonlcon,options),
How should I use this to solve my problem.
OR
How to solve a system of nonlinear equations in MATLAB using genetic algorithm?
Thanks in advance.