Addressing spatial intensification in high-density affordable housing, this study proposes an automated design methodology integrating modular configuration with multi-objective optimization (MOO). A module library incorporating ergonomic "action domains" was developed using a Design Structure Matrix (DSM) to quantify inter-module correlations. Implemented via Rhino/Grasshopper, the framework employs genetic algorithms (GAs) to optimize layouts for compactness and connectivity. To ensure viability, generated schemes were evaluated through MassMotion simulations of daily activity paths. Validated via standardized refinement and generative innovation pathways, results show the algorithm consistently identifies "frontier solutions" outperforming traditional benchmarks. Specifically, the methodology achieved floor area reductions of 17.3%–43.5% while maintaining circulation efficiency, effectively breaking the empirical "function-area" lock-in. This research demonstrates the potential of data-driven computational workflows for residential spatial efficiency and provides a robust trajectory for precision engineering intensive housing.
Extreme spatial intensification in affordable housing exposes the structural limitations of conventional room-based zoning, yet existing generative design methods often fail to deeply couple spatial automation with volatile occupant behavioral logic. This study proposes a generalizable Structure–Behavior–Function (SBF)-based generative framework to realize the transition from top-down rigid zoning to bottom-up behavioral adaptation. The framework deconstructs traditional rooms into three coupled layers: minimal ergonomic action domains (structural), 3D Design Structure Matrix-based activity correlation quantification (behavioral), and multi-objective optimization metrics encoding (functional). A discrete grid-based evolutionary approach with a hard–soft dual-constraint mechanism is introduced, combining geometric collision detection for physical feasibility and behavioral correlation rules for spatial zoning reward–punishment. Layout performance is validated via pedestrian circulation simulations. Using a representative megacity affordable housing standard as a case study, controlled computational experiments reveal an empirical power-law scaling boundary between minimum viable area and occupancy size. We establish an Adaptability Surcharge Index (ASI) to quantify the 3.0–7.2% spatial efficiency degradation from rigid structural constraints. The framework achieves 30.3–45.7% floor area reduction versus traditional benchmarks while maintaining comparable circulation efficiency. Validation using an existing residential case further confirms the practical applicability of the proposed framework. This work provides a scalable computational methodology for hyper-dense spatial optimization and a quantitative foundation for future residential space standard formulations.