Text this: Adaptive optimal control of prosumer energy storage system with renewable energy sources