A methodology for the optimization of building energy, thermal, and visual performance