Nonlinear programming techniques for equilibria. (2018)