# Multi objective optimization using genetic algorithm

I have an objective function profit = income - expense . I want to solve it using genetic/evolutionary algorithm (strength pareto SPEA2). Since the algorithm is multi-objective so can I consider the income maximization as one objective and expense minimization as second objective?. I am using SPEA2 matlab code from YARPIZ. I am not sure whether this approach of breaking objective function is technically correct. Secondly, please also throw some light on how to do both conflicting objective simultaneously. The code in link is written for minimization of objective functions, but I have to minimize one and maximize other objective.

• Why don't you try it out and see if it works? Commented Jul 10, 2017 at 9:07
• sir thanks for response, I did it by breaking, now I am faced with issue of how to apply constraints in strength pareto algorithm (SPEA2). I have bound constraints that variable is between 0 and 1 ( minimum 0 and maximum 1). Also the sum of decision variable should be 1. I would appreciate any help. Commented Jul 10, 2017 at 17:24

Just define profit as a variable and maximize porfit as your singular objective. In general the objective will depent on multiple variables indirectly and the variables will usually also depend on each other. If this is not the case there are probably much more effective solutions than genetic algorithms.

• sir thanks for response. I will try your suggestion. Commented Jul 10, 2017 at 17:25