Design Patterns for Optimization Models of Flexible Energy Resources | IEEE Conference Publication | IEEE Xplore