Renewable Generation with Intelligent Storage and Consumption to Operate Distribution Networks with Auto-consumption Systems