A transmission expansion model for dynamic operation of flexible demand. (January 2021)