While the basic supply and demand model is based on individual consumer and firm behavior, the competitive equilibrium model is based on the behavior of aggregate consumers and firms in competitive markets. It can be used to predict the equilibrium price and total quantity in the market, as well as the quantity consumed by each individual and output per firm.