The steady-state performance and power quality of microgrid is closely related to control parameters. this paper develops hierarchical control of microgrid, which consists of power control stage, voltage control stage and current control stage. This control schemes can simultaneously regulate fundamental voltage and harmonic current to improve the power qualtiy of microgrid. In order to enhance steady state control pricision, unbalance and harmonics eliminate ability of microgrid, the control paramters of hierarchical control are optimized by multi-objective genetic algorithm. The simulation results show that the optimized control algorithm can effectively optimize the microgrid operation on steady control accuracy and power quality.