Computation of generalized Nash equilibria