The operation of injection apparatus in self-ignition engines results from the design, manufacturing technology and wear and tear during operation. The technical state of the injector apparatus significantly affects the engine performance, fuel consumption, toxicity and smoke opacity of outlet gases. The most unreliable element of the injection apparatus is the injector nozzle, the quality of which depends on the quality of construction and production, operating conditions and the of the fuels used, etc. One of the design parameters of the injector nozzles, determining the technical state is the geometry of the nozzle holes. An attempt was made to optimize the selection of the dimensions and surface condition of the spray holes to significantly affect the flow properties of the injector nozzles and, consequently, to decide on the size and form of fuel dosed streams to individual cylinders of a self-ignition engine and the quality of fuel atomization. In work, a simulation model was developed, and the pressure losses and the mass fluid of the injected fuel were minimized for selected significant geometric features, taking into account the influence of operating conditions. With the use of Mathematica software, simulation optimization methods and methods based on evolutionary algorithms were elaborated.