classdef clGAalgorithm
properties
rp_lvl = 0;
ev_pp = true;
ev_npg = 12;
gd
end
methods (Static)
function [object, fP, GAS, bi, bf] = GA1 (objDS, objT)
ngen = 2000;
npop = 2000;
object = gapdefault (2.0, npop, ngen);
object.gd = [1 6 1 1; ...
1e-4 1.5e + 0 3 1; ...
1e-6 5e-2 3 1; ...
1e-4 0.5e + 0 3 1; ...
1 2 1 1; ...
1 200 3 1; ...
max (objDS.insclp, objDS.inscls) 0.2 3 1];
if objDS.Wm ~ = 1
disp ( 'Winding Model is false. Choose 1 for Litz Wire or 2 for Foil Winding in D.wm in fixed parameters! Litz Wire is chosen as default!' );
end
objDS.Wm = 1;
objDS.tpins = 30e-6;
objDS.kpb = 1.2;
objDS.ksb = 1.2;
objDS.tsins = 30e-6;
objDS.kbdmnr = 10;
alphapu = 3;
alphasu = 3;
object.gd = [object.gd;
0.1 10 3 1; ...
1e-6 0.3e-2 3 1; ...
100 40,000 1 1; ...
1 / alphapu alphapu 3 1]; ...
if objDS.Tm == 2
object.gd = [object.gd;
1 2 1 1; ...
Rpsmn Rpsmx 2 1; ...
1e-6 0.3e-2 3 1; ...
100 40,000 1 1; ...
0.1 10 3 1; ...
1 / alphasu alphasu 3 1]; ...
end
[fP, GAS, bi, bf] = gaoptimize (@ cloptim1.CTT_fit_Litz1, object, objDS);
if objDS.MatCore == 1
save resultsSteelLitz
elseif objDS.MatCore == 2
save resultsFerriteLitz
elseif objDS.MatCore == 3
save resultsNanoLitz
else
disp ( 'No such material catalog for core' );
end
end