Text this: Optimal management with demand response program for a multi-generation energy system