AN OPTIMIZATION FRAMEWORK FOR PBCF ENERGY SAVING DEVICES