Maximization of objective function