PurposeThis paper aims to propose a generative design method combined with meta-heuristic algorithm for automating and optimizing the floor layout of modular buildings using typical standardized module units, which are the room module, the corridor module and the stair module.Design/methodology/approachThe integrated framework involves the generative design method and optimization for modular construction. The generative rules are provided by geometric relationships and functionalities of the module units. An evaluation function of the generated floor plans is also presented by the combination of project cost and cost penalties for the geometric features. The multi-population genetic algorithm (MPGA) method is provided for the optimization of the combination of costs.FindingsThe proposed MPGA method is demonstrated fast and efficient at discovering the globally optimal solution. The results indicate that when the unit price of modules is high, the transportation distance is long, or the land cost is high, the layout cost, which related to the symmetry, the compactness and the energy is tend to be lower, making the optimal layout economical.Originality/valueThis paper presented an integrated framework of generative floor layout and optimization for modular construction by using typical module units. It fulfills the need for automated layout generation with repetitive units and corresponding assessment during the early design stage.