Multi objective optimization using genetic algorithm
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.