In this paper, optimal coordination of the demand side under uncertainty of the energy price in energy market is studied. The consumers by demand response programs (DRPs) have optimal role in minimization of the energy generation costs in multiple energy system. The consumers can participate via local generation strategy (LGS) and demand curtailment strategy (DCS). The optimal coordination is considered as two stage optimization, in which minimization of the consumers’ bills is done in first stage. In following, the minimization of the generation costs is performed in second stage optimization. The LGS is taken into accounted through optimal discharging of plug electric vehicles (PEVs). Finally, numerical simulation is implemented to show superiority of the proposed approach to minimization of the energy generation costs.