In this book an overall energy system optimization is performed in various contexts. The system takes respect of a grid connection and its load, a mechanical drive train system (mDTS). To achieve best performance of the mDTS, a battery system as part of a power link is included as energy storage.