Optimization of division and reconfiguration locations of the medium-voltage power grid based on forecasting the level of load and generation from renewable energy sources | Synapse