Algorithm for optimising the parameters of MM field of molten salt.