Simulation and Evaluation of Optimization Problem Solutions in Distributed Energy Management Systems