One of the options to reduce the energy consumption of agricultural products is the use of heat and cold supply schemes based on heat pump units. Ecological requirements are tightening. The role of environmental friendly coolants is increasing. The most environmentally friendly coolant is ice, which can be produced with the use of refrigeration machines (heat pumps). However, the production of ice in heat pump systems requires additional energy costs for its removing from the heat exchange surface. The freezing of the heat exchanger leads to the worsening of productivity of the entire heat pump. The article deals with the optimization of the process of creating artificial ice in the membrane heat exchanger of the heat pump unit. The basis of the study was the experiment conducted in accordance with the Box-Benken plan for three factors. The experimental data was analyzed and the regression equation was made. A mathematical model of the ice generation rate in the membrane heat exchanger of the heat pump from the volume of cooled water and the time of filling the space under the membrane with the refrigerant was obtained during the study. The response surface was plotted according with the obtained equation.