The model and the program for analysis of the operating cycle with two fuel combustion laws according to Wiebe I.I. are developed. The calculation of the transport diesel engine with the Common-Rail system for gasoline direct injection is performed. The optimal heat generation law for the maximum pressure reduction in the cylinder and the improvement of indicator values of the diesel engine is specified.