Sizing. Each floor is a bay of span L and width B = 5 m carried by two edge beams (Euler–Bernoulli, simply supported). With the design load q and the beam's own weight, the line load is w = q·B + ρAg, and a section is acceptable only if all three limits hold:
bending σ = (wL²/8) / Z ≤ σallow
shear τ = (wL/2) / Av ≤ 0.6 σallow
deflection δ = 5wL&sup4; / (384 E I) ≤ L / 240 | 360 | 500
The generative step is a genetic algorithm: a population of section genes (depth, flange width, flange and web thickness; or width ratio for timber) is scored by cross-section area plus a penalty for each violated limit, then improved by tournament selection, crossover and mutation. It is compared with an exhaustive search of every candidate, which is the honest proof that the heuristic found the optimum. Columns are sized storey by storey for the load of all floors above (n floors × the beam reaction) with the Euler buckling load Pcr = π²EI/H² and a factor of safety of 2.5.
Maintenance. Each rooftop unit has a hidden life T ~ Weibull(β, η): F(t) = 1 − exp(−(t/η)β), mean ηΓ(1 + 1/β). β > 1 is wear-out, β = 1 is random failure. A health sensor reads x = (age/T)² plus Gaussian noise; x = 1 is failure. Three strategies run on the same random lives (common random numbers) so their costs are comparable: run to failure (pay the unplanned cost cf = ratio × cp), replace at a fixed age, or replace when the reading stays above the alarm level for two samples. The long-run cost rate of age replacement is [cpR(A) + cfF(A)] / ∫0AR(t)dt.