We consider problems of optimal control of stochastic processes. Specifically, models of energy storage and production systems coupled with models of energy trading platforms and energy derivatives are considered.