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.(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Optimization using genetic algorithm in matlab

Tags:

**Physics Forums | Science Articles, Homework Help, Discussion**