Optimizing Production Schedules and Energy Consumption with an Evolutionary Algorithm