Nowadays, air pollution and dependence on fossil fuel resources are worldwide concerns. These issues are most taken into account in the transportation sectors and electricity generation system as the main consumers of fossil fuels. Electric vehicles (EVs) with the capability of Vehicle-to-Grid (V2G) are a solution to answer these concerns. Of course, most of the EVs, which will be added in the distribution system in the future, would highly consume energy, which leads to more energy production and consequently, increased the greenhouse gas emissions. However, this problem can be solved by charging/discharging schedule of the EVs as well as the usage of renewable-energy resources (RERs) such as the solar system.