In this paper, an energy system with some multi carrier energy, based on energy hub theory, is evaluated. Aim of this system is the cost optimization with respect to multi carrier optimal dispatch and applying the demand side management program (DSM). By attention to increasing demand of energy (Electrical, Natural Gas and etc.) and problem that related to supplying it, in this paper supplying of electrical energy is based on AC/DC hybrid distribution system concept. to supply AC load electrical energy, we use electrical network and the combined heating power (CHP). To supply the DC load electrical energy we use photovoltaic panel. The aim of DSM, is peak/load shaving by PV panel in a certain time range. Using PV panel in addition to providing electrical power, has advantages such as using renewable energy and decreasing greenhouse gas emissions and cost.