The script includes key components to calculate important metrics such as the Total Area, which ensures the floor area falls between 2.5 to 3 million square feet; Construction Cost, which calculates costs assuming a linear increase from $500 per square foot at ground level to $1000 per square foot at 750 feet; and Facade Area, which measures the building's exterior surface area.
The optimization process uses "Genome Fitness" to evaluate and refine the design. to explores a wide range of design options, optimizing based on Facade Area Optimization, which minimizes the exterior surface area to improve energy efficiency, and Construction Cost Optimization, which reduces the total construction cost while maintaining design integrity.
The script is organized into distinct sections: Control Parameters with sliders for adjusting U Count, V Count, heights, number of floors, and coordinates; Area and Cost Calculations, which include components to compute total area, construction cost, and facade area; and Optimization Logic, which uses genetic algorithm components to refine design options based on the calculated metrics. The "Divide" and "Evaluate" components ar used to distribute and calculate building dimensions, while "Remap" and "Bounds" components ensure that the generated values stay within specified limits. The "Genome Fitness" components, connected to facade area and construction cost calculations, guide the genetic algorithm in finding the most optimal design configurations.