[2409.08084] Linear energy storage and flexibility model with ramp rate, ramping, deadline and capacity constraints