Training design of foundations