Virtual power plant with energy storage optimized in an electricity market approach