Convergence of a method for computing economic equilibria