@Pramit Biswas Following is my problem how can I use your code to optimize my objective function y.
function y= muza(x)
FAO=2.5; % FG504 % Avg FG Temp at AH Outlet
TGA=156; % KX022 % FG O2 at AH Outlet
TAA=35; % KY085 % Ambient Temp
TAAI=35; % KY062 % Air Temp at AH Inlet (Ambient Temp)
TGAI=x(2); % KY060 % Gas Temp at AH Inlet
TGAO=170; % KY061 % Gas Temp at AH Outlet
MLTFH=x(1); % CM555 % Total Coal Flow
x(1)= min=120, max=150.
x(2)= min=330, max=370.
@mohammed abdullrahman: as I commented earlier, you can use this program for simulink model, you may take look on these commands: load_system, set_param, get_param, save_system, sim; to create your desired fitness function.
@gon: I think it is possible, if you can make an appropriate fitness function, which can handle multiple objective functions according to your need, then send back the single output to the PSO function.
@braa: I tried to explain everything, however i'll add more example and details in next update.
regarding the use of this program for simulink model, you may take look on these commands: load_system, set_param, get_param, save_system, sim; to create your desired fitness function.