The study presents software for a microcomputer designed to determine the optimum dose distribution in external radiotherapy, either by calculating the doses delivered and the field width (in linear programming) or, in addition, by calculating the beam geometry (non-linear optimisation). Various optimisation criteria can be selected, namely the homogeneity, the concentration on the target and the total dose in a sensitive area. The article outlines an example.