Goods production, resource allocation, and consumer behavior