The genetic algorithm method is combined with the finite-element method for the first time as an alternative method to invert gravity anomaly data for reconstructing the 3D density structure in the subsurface. The method provides a global search in the mo