An anal. of the developed math. model optimizing the value chain of biogas prodn. based on such parameters as substrate costs, their transportation costs, distance from the biogas plant, investment and operating costs of the biogas plant, as well as profits from the sale of biogas/biomethane was presented. A scheme of raw materials and products flows for the proposed model, basic substrates used and essential parameters of the biogas prodn. process were presented. Operating costs (KOpx) and investment costs (KCap) were estimated based on available literature data. Mixed-Integer Linear Programming (MILP) procedures will be used for calcns. according to the proposed math. model, which allow to obtain the lowest biogas prodn. costs for the considered biogas plants.