The types of glass and exterior walls and the window-to-wall ratio (WWR) on building facades play a major role in heat losses that occur in every type of building, residential or commercial. The opaque and transparent surfaces of buildings have an important role in terms of both energy losses and energy gains. Windows are the parts of the building envelope where losses mostly occur. As the WWR increases on the facades of a building, heat losses increase, but heat gains from solar energy also increase, which assists in free heating of the building. this study, a detached residential building located in Antalya, Turkey, a province with humid climatic conditions, has been examined. A series of simulations were carried out detect the effects of WWRs and different glass, frame, and exterior wall types on heat losses of the building. The heat loss values obtained from these simulations were processed by using special mechanical installation calculation software. Simulations were performed for apartment rooms with levels of WWR ranging from 30 to 60 % of the wall areas facing the facade. In order to minimize heat loss, double-pane glass (or double-glazed glass) was used instead of single pane glass. The aim of this study was to find the optimum value in terms of applicability economy. The optimum value was calculated by minimization according to both the linear graphical method and the dual simplex optimization method. The values found in both methods were compared and interpreted. It is believed that the optimized glass, frame, joinery, exterior wall parameters, which are influential to the energy performance of the building, make a positive contribution to the architectural design phase in addition to improving energy efficiency of existing buildings.