The usage of renewable energy sources and energy storage devices allows an enterprise to reduce its electricity supply costs. Significant savings can be achieved only in the case of a well-organized system of managing energy flows of the enterprise and electricity consumption. The puprpose of the study was to analyze the existing storage devices and renewable energy sources, and on the basis of the analysis, introduce an approach to organizing energy supply of the enterprise based on the usage of storage devices and renewable energy sources. The approach introduced implies the electricity purchase schedule curve optimization to minimize the total costs. The purchase schedule curve optimization for the case of energy storage usage is an ill-posed problem. Within the framework of solving the problem, the form of the curve was formalized to a piecewise constant function, which made it possible to solve it by applying multi-criteria optimization based on a modified method of directed random search. We analyzed a model case, for which an optimal purchase schedule curve was obtained using storage devices and solar panels, and the achievable economic effect from their use was graphed. The maximum value of operational costs, which makes the usage of energy storage and renewable energy source efficient, was found