Text this: Chance Constrained Programming and Its Applications to Energy Management