Adaptive Flexibility Function in Smart Energy Systems: A Linearized Price-Demand Mapping Approach | IEEE Conference Publication | IEEE Xplore