how to use taguchi array

16 vues (au cours des 30 derniers jours)
Asliddin Komilov
Asliddin Komilov le 9 Oct 2020
I used this code
[Ta] = TaguchiArray(3,101)
Einf=0.1;
YF =linspace(0.85,1.1,101);
PVprice =linspace(800,1600,101);
F_bank =linspace(0,5,101);
Sys_LCOE=zeros(length(F_bank),length(PVprice),length(YF));
for ii=1:1:length(YF);
for i=1:1:length(PVprice);
for jj=1:1:length(F_bank) ;
Sys_LCOE(jj,i,ii)=LCOE(F_bank(jj),Einf, PVprice(i),YF(ii));
end
end
end
can you help me to use the Taguchi array in my code, thanks.
  1 commentaire
Asliddin Komilov
Asliddin Komilov le 12 Oct 2020
Einf=0.1;
YF =linspace(0.85,1.1,101);
PVprice =linspace(800,1600,101);
F_bank =linspace(0,5,101);
% Einf=linspace(0.05,0.2,16);
num_Par=[ YF; PVprice; F_bank];
[Tag_arr] = TaguchiArray(size(num_Par,2),size(num_Par,1));% taguchi array generated
for ii=1:1:length(num_Par);
for i=1:1:length(Tag_arr);
if Tag_arr(i,1)==ii;
Tag_arr(i,1)=YF(ii);
end
if Tag_arr(i,2)==ii;
Tag_arr(i,2)=PVprice(ii);
end
if Tag_arr(i,3)==ii;
Tag_arr(i,3)=F_bank(ii);
end
end
end
this is how I replaced the taguchi array with the parameter values.
but cannot figure out how to make the Sys_LCOE 3 dimentional, because when I use the parmeters in the array it becomes an array:
for j=1:1:length(Tag_arr);
F_bank1(j)=Tag_arr(j,1);
PVprice1(j)=Tag_arr(j,2);
YF1(j)=Tag_arr(j,3);
Sys_LCOE(j)=LCOE(F_bank1(j),Einf, PVprice1(j),YF1(j));
end

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by