Аннотация:The paper formulates conditional variational problems, the solution of which is anunknown distribution of masses, magnetic dipoles, charges, etc. Such conditional variationalproblems are reduced to solving large and poorly conditioned systems of linear algebraic equationswith an approximate right-hand side. The peculiarity of the approach lies in the fact that thedistribution of unknown gravitational masses (or magnetic), depending on an infinite number ofparameters, is generally restored quite well from a finite set of values of the field components at thepoints of the observation network.