A purely capitalist solution would be to fire all the men and keep only the women because they are doing comparable work for less pay. In a capitalist market why hasn't this happened already ? This is exactly what happened when much of manufacturing moved away from USA to china, but for some reason this has not happened in the male female salary disparity. A company can earn diversiy points and save money by not hiring expensive male engineers.