OPTIMAL LOAD DISPATCH AND LOAD SHEDDING ALGORITHM FOR POWER SYSTEM