Optimization of single-machine production scheduling to minimize energy consumption costs and makespan