The aim of the thesis "Design and optimization of the heat pump" is the project documentation for building permits, finding a suitable source of heat and cold. The problem is solved for a Tesco hypermarket. The device is designed to meet the health, performance and functional requirements for indoor climate. The task of this device is to transport fresh air into the interior cover heat losses in winter and coverage heat gains during the summer. The theoretical part deals with the problem of heat pumps. Special mention is about heat pump air x air. Calculation and design part is a specific proposal, two air conditioners and optimizing for winter. The experimental part deals with the processing of data on existing rooftop units