- #1
amos.ngwoke
- 3
- 0
For my B.Eng project, I'm optimizing the thermal efficiency of a boiler using genetic algorithm in MATLAB. I'm finding it very tough to write my fitness function, constraint equations and upload my initial population which is a set of data from my case study plant.
for boiler thermal efficiency,
η = Q(hf - hg)/ (q * GCV)
here's my fitness function
function E = thermal_eff(x)
% thermal_efficiency(x) calculates thermal efficiency of a steam boiler
%
% E = thermal_efficiency(x) calculates the thermal efficiency of the steam boiler
%
% x(1) = Q = Quantity of steam generated per hour in kg/hr
% x(2) = hg = Enthalpy of saturated steam in kCal/kg of steam
% x(3) = hf = Enthalpy of feed water in kCal/kg of water
% x(4) = q = Quantity of fuel used per hour (q) in kg/hr
% x(5) = GCV = Gross calorific value of the fuel (GCV) in kCal/kg of fuel
%
% thermal efficiency of a steam boiler
E = (x(1)*(x(2)- x(3))) / (x(4) * x(5));
I don't know how accurate I am, and I'm finding it difficult to write the constraint equations and upload my initial population
Please assist me in any way you can
Thanks
for boiler thermal efficiency,
η = Q(hf - hg)/ (q * GCV)
here's my fitness function
function E = thermal_eff(x)
% thermal_efficiency(x) calculates thermal efficiency of a steam boiler
%
% E = thermal_efficiency(x) calculates the thermal efficiency of the steam boiler
%
% x(1) = Q = Quantity of steam generated per hour in kg/hr
% x(2) = hg = Enthalpy of saturated steam in kCal/kg of steam
% x(3) = hf = Enthalpy of feed water in kCal/kg of water
% x(4) = q = Quantity of fuel used per hour (q) in kg/hr
% x(5) = GCV = Gross calorific value of the fuel (GCV) in kCal/kg of fuel
%
% thermal efficiency of a steam boiler
E = (x(1)*(x(2)- x(3))) / (x(4) * x(5));
I don't know how accurate I am, and I'm finding it difficult to write the constraint equations and upload my initial population
Please assist me in any way you can
Thanks