Due to the increasing need for energy and limited fossil resources on the one hand, and the increasing environmental pollution caused by the burning of these resources, on the other hand, the use of renewable energy has become more and more important. Wind and solar energy are one of the main types of renewable energy that has long attracted the human mind, so he has always thought about using these energies in the industry. In this study, the optimal combination of scattered production sources (wind-solar) has been added to a 33 IEEE bus system and beta distribution has been used to model wind speed. Also, load and production planning is 24 hours. The aim of this study is to improve voltage profiles, increase reliability and reduce losses. As a result, a 39% reduction in casualties in the presence of wind turbines and a 40% reduction in the presence of photovoltaic cells highlights the role of these resources in the grid.