Professional Documents
Culture Documents
CHP System Data
CHP System Data
clear
clc
GG(18)=CCHP;
GG(1).ModelName='GG50';
GG(2).ModelName='GG70';
GG(3).ModelName='GG98';
GG(4).ModelName='GG113';
GG(5).ModelName='GG132';
GG(6).ModelName='GG140';
GG(7).ModelName='GG170';
GG(8).ModelName='GG201';
GG(9).ModelName='GG206';
GG(10).ModelName='GG237';
GG(11).ModelName='GG260';
GG(12).ModelName='GG330';
GG(13).ModelName='GG330_2';
GG(14).ModelName='GG385';
GG(15).ModelName='GG402';
GG(16).ModelName='GG_402_2';
GG(17).ModelName='GG_465';
GG(18).ModelName='GG_530';
for ii=1:length(GG)
GG(ii).Le=Le;
GG(ii).Lh=Lh;
end
Upper Boundry
for ii=1:length(GG)
GG(ii).Pe_max= 5; %Max input electric Power from grid
GG(ii).Ph_max= 5; %Max input heat power Pu in case of boiler avilable
end
GG(1).eff_ge=0.342;
GG(2).eff_ge=0.348;
GG(3).eff_ge=0.352;
GG(4).eff_ge=0.349;
GG(5).eff_ge=0.374;
GG(6).eff_ge=0.362;
GG(7).eff_ge=0.390;
GG(8).eff_ge=0.346;
GG(9).eff_ge=0.399;
GG(10).eff_ge=0.357;
GG(11).eff_ge=0.379;
GG(12).eff_ge=0.383;
GG(13).eff_ge=0.382;
GG(14).eff_ge=0.386;
GG(15).eff_ge=0.388;
GG(16).eff_ge=0.383;
GG(17).eff_ge=0.394;
GG(18).eff_ge=0.397;
GG(1).eff_gh=0.562
GG(2).eff_gh=0.559;
GG(3).eff_gh=0.570;
GG(4).eff_gh=0.554;
GG(4).eff_gh=0.554;
GG(5).eff_gh=0.551;
GG(6).eff_gh=0.551;
GG(7).eff_gh=0.515;
GG(8).eff_gh=0.559;
GG(9).eff_gh=0.505;
GG(10).eff_gh=0.556;
GG(11).eff_gh=0.549;
GG(12).eff_gh=0.521;
GG(13).eff_gh=0.515;
GG(14).eff_gh=0.511;
GG(15).eff_gh=0.515;
GG(16).eff_gh=0.518;
GG(17).eff_gh=0.514;
GG(18).eff_gh=0.521;
GG =
ModelName
Pg_max
Pe_max
Ph_max
eff_ge
eff_gh
eff_eh
eff_ee
eff_hh
Le
Lh
a_coeff
b_coeff
Ga_result
FFA_result
C
for ii=1:length(GG)
GG(ii).eff_ee=0.98;
GG(ii).eff_eh=0;
GG(ii).eff_hh=0.9;
end
for ii=1:length(GG)
GG(ii).a_coeff=[12 5 4];
GG(ii).b_coeff=[0.12 0.05 .04];
end
for ii=1:length(GG)
close all
Ga_Solution(ii)=GG(ii).Ga_result;
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Optimization terminated: average change in the fitness value less than options.FunctionTolerance
and constraint violation is less than options.ConstraintTolerance.
Getting results using FFA
close all
FFa_Solution(ii)=GG(ii).FFA_result;
end
for ii=1:length(GG)
COST_FFA(ii)=FFa_Solution(ii).F_ff;
COST_GA(ii)=Ga_Solution(ii).Fga;
end
[COST1,Index_ga]=sort(COST_GA);
[COST2,Index_ffa]=sort(COST_FFA);
for ii=1:length(GG)
GG_ffa(ii)=GG(Index_ffa(ii));
GG_ga(ii)=GG(Index_ga(ii));
SOL_Ga(ii)=Ga_Solution(Index_ga(ii));
SOL_FFA(ii)=FFa_Solution(Index_ffa(ii));
end
Formatting GA
Tga =
Tffa =
Pe Pg Ph eff_ge eff_gh eff_hh Cost
________ ______ ______ ______ ______ ______ __________