Stochastic nonlinear modelling and application of price-based energy flexibility. (1st October 2020)