An Agent Based Model Applied to a Local Energy Market (LEM) Considering Demand Response (DR) and Its Interaction with the Wholesale Market (WSM) | IEEE Conference Publication | IEEE Xplore