Title: Threshold based demand and product market clearing