The paper considers a digital model of a wheeled agricultural tractor, as well as algorithms for automatic control of the engine and transmission. Simulation of the working conditions was performed in MATLAB and its applications, Simulink, Sim-scape. The tractor model is based on a systemic approach and includes such subsystems as the engine, transmission, undercarriage, hook load, and control actions from the operator, as well as functions of logic and optimisation for gear shifting. With the help of fundamental blocks of the Matlab package, models of tractor physical components are created. The fundamental blocks of the package serve to model the physical components of the tractor: engine, transmission control system, the transmission that includes friction clutches, gears, shafts ties with the necessary characteristics. Simulation of the working processes of a tractor unit is performed with optimisation of the laws of engine and transmission control according to the criterion of fuel efficiency and maximum power usage. The control system parameters were optimised in the transport mode, as well as in the maximum power mode in the traction range. As an illustration of the use of this analysis method, a solution to the problem of optimisation of an agricultural wheeled tractor operating modes is given. The results of this mathematical simulation are presented in this paper. Parameters of tractor operation control algorithm, which provide minimum fuel consumption in tractor operating cycles, are given. The research results showed the effectiveness of the proposed algorithms and the digital model. The presented digital model allows to debug the operating tractor control algorithms and offers an engineering practice for optimising automatic control of the agricultural tractor engine and transmission.