A linear programming model for power distribution with demand response and variable renewable energy. (1st November 2016)