A method and system are provided for managing local energy resources of an energy system. The method includes determining, offline by a processor, an offline optimal resource allocation of the local energy resources using a Pontryagin Maximum Principle that involves a continuous, unbounded state. The method further includes determining, in real-time by the processor, a real-time optimal resource allocation of the local energy resources using offline-determined energy storage shadow pricing. The method also includes managing, by the processor, an allocation of the local energy resources in accordance with the offline optimal resource allocation and the real-time optimal resource allocation.
展开▼