I want to write a mfile in matlab for multiobjective optimization of heat exchanger. I face difficulty to express the function in terms of variables Hence if possible please provide me a written mfile for reference.
It would be better if you post your objective function. Coz. it seems that you are facing difficulties with the coding of the objective function and not the GA
Formulate the problem in such a way that a set of variables (unknown) can give a value of the objective function. I would like to recommend you the following articles for such type os problems. Try to understand the formulation and do the similar to your problem and after that apply either GA or the codes of PSO given in the articles to solve your problems.