Connection to optimization systems

Enables automatic control by external optimizers or energy controllers.