Optimal implementation of consumer demand response program with consideration of uncertain generation in a microgrid