Аксиальная аберрация ионно-оптической системы статического масс-анализатора является одним из главных факторов, ограничивающих пропускание и чувствительность прибора. Описывается алгоритм выбора оптимальной коллимирующей системы масс-анализатора, позволяющей эффективно уменьшать данную аберрацию при минимальных потерях интенсивности масс-спектральных линий. Алгоритм основан на представлении рассматриваемой аберрации в фазовом пространстве в виде эллипса и оптимальной аппроксимации этого аберрационного эллипса многоугольником c заданным числом вершин. Показано, что при отсутствии ограничений решением соответствующих оптимизационных задач являются фазовые многоугольники, порождаемые вписанными в единичный круг либо описанными вокруг единичного круга правильными многоугольниками с тем же самым количеством вершин. После этого единичный круг вместе с многоугольниками растягивается до размеров заданного аберрационного эллипса вдоль его главных осей. Дополнительная свобода вращения исходного многоугольника относительно центра единичного круга может быть использована для более удобного расположения вспомогательных щелей коллимирующей системы. The axial aberration of the ion-optical system of a static mass analyzer is one of the significant factors that limits the transmittance and sensitivity of the device due to the need to significantly reduce the vertical component of the ion beam emittance to get the required mass spectral resolution. An algorithm for choosing the optimal collimating system of the mass analyzer is described, which allows one to effectively reduce this aberration with minimal loss of intensity of the mass spectral lines. The algorithm is based on the representation of the considered aberration in phase space as an ellipse and the optimal approximation of this aberration ellipse by a polygon with a given number of vertices. In the absence of restrictions. The solution of the corresponding optimization problems is constructed as phase polygons generated by regular polygons inscribed in a unit circle or described around a unit circle with the same number of vertices. Then the unit circle along with the polygons is stretched to the size of a given aberration ellipse along its main axes. Additional freedom of rotation of the initial polygon relative to the center of the unit circle can be used for more convenient location of auxiliary slits of the collimating system.