This research presents an intelligent model related with the modeling of a roof garden in buildings in the center of the country of Mexico and, in general, the buildings are located in Mexican national territory, taking in consideration the legislation in such delimitation. We analyze the behavior and features of a roof slab from the point of view of the constructive conception that was designed to complete the building and that does not have the specifications of a slab of mezzanine that from the beginning are established in the calculation memory of the construction. For that reason, it is important to determine the optimal parameters for the development of the roof garden and thus begin to transform the cities with the characteristics and conditions to be a smart city. The intent of the present research is to apply mathematical tools, computational as well as artificial intelligence software for roof garden modeling, based on a mathematical model that allows to integrate the dead load to live load, and the specific weights of the dry stratum and the wet stratum since the use of smart farming is incorporated in the roof top design.