Text this: Methodology for the Automatic Generation of Optimization Models of Systems of Flexible Energy Resources