Info

This question is closed. Reopen it to edit or answer.

Can any one help me regarding how to optimize matrix Y & obtain F,Xm using Fmincon in the matlab code written below?

1 view (last 30 days)
R1=0.05385;
R2=0.05385;
X1=0.0885;
X2=0.0885;
Rr=0.11475;
Xr=0.1775;
Xlm=0.00973;
v=1500;
Xl2=0.012;
Xl1=0.02;
v=200;
csh=38.5;
cse=108;
Rl1=0.0673;
Rl2=0.0673;
Xl1=0.087;
j=-1;
F=50;
Xm=2.93;
Xcp1=1/(2*3.14*0.1);
Xcs1=1/(2*3.14*0.2);
Xcp2=1/(2*3.14*0.3);
Xcs2=1/(2*3.14*0.4);
Z1=((Rr/F-v)+j*Xr);
Z2=-j*Xm;
Z3=-j*Xlm;
Z4=((R2/F)+j*X2);
Z5=(R1/F)+j*X1;
Z6=(-j*Xcp2/F*2);
Z7=((Rl2/F)+j*(Xl2-(Xcs2/F*2)));
Z8=(-j*Xcp2/F*2);
Z9=((Rl1/F)+j*(Xl1-(Xcs1/F*2)));
fprintf('Impedances\n Z1 = %d \n Z2 = %d \n Z3 = %d \n Z4 = %d \n Z5 = %d \n Z6 = %d \n Z7 = %d \n Z8 = %d \n Z9 = %d \n', Z1, Z2, Z3, Z4, Z5, Z6, Z7, Z8, Z9);
Y1=(1/Z1)
Y2=1/Z2
Y3=1/Z3
Y4=1/Z4
Y5=1/Z5
Y6=1/Z6
Y7=1/Z7
Y8=1/Z8
Y9=1/Z9
Y=[Y1+Y2+Y3 Y1+Y2 0 Y1+Y2;Y1+Y1 Y1+Y2+Y4+Y8+Y9 -Y8-Y9 Y1+Y2+Y8+Y9;0 -Y8-Y9 Y5+Y8+Y9 -Y8-Y9;Y1+Y2 Y1+Y2+Y8+Y9 -Y8-Y9 Y1+Y2+Y6+Y7+Y8+Y9]

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!