A new flexible model for generation scheduling in a smart grid. (15th January 2020)