A computer program for the optimization of relation for correction of matrix effects in Energy Dispersive X-Ray Fluorescence (EDXRF) analysis is described Program functioning and correction efficiency is studied experimentally in the case of silicate geological samples.