DEMAND Project: An algorithm for the assessment of the prosumers’ flexibility | IEEE Conference Publication | IEEE Xplore