Residential demand-side flexibility in energy communities: a combination of optimization and agent modeling approaches | IEEE Conference Publication | IEEE Xplore