Solve equilibrium problems (#641)