Optimization and Control for Microgrid and Power Electronic