Cournot and Walras equilibrium