Optimal Scheduling of Hydro–Thermal–Wind–Photovoltaic Generation Using Lightning Attachment Procedure Optimizer