Modeling Structural Changes in Market Demand and Supply