Optimal model through identified frequencies of a masonry building structure with wooden floors