Research: AUTOMATED MANAGEMENT OF THE ENERGY SUPPLY