Text this: Linearization method for MINLP energy optimization problems